Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeing :nif_not_loaded error for Series.split/2 when mutating a dataframe #874

Closed
H12 opened this issue Mar 3, 2024 · 1 comment · Fixed by #875
Closed

Seeing :nif_not_loaded error for Series.split/2 when mutating a dataframe #874

H12 opened this issue Mar 3, 2024 · 1 comment · Fixed by #875

Comments

@H12
Copy link
Contributor

H12 commented Mar 3, 2024

When I run the following:

Mix.install([explorer: "~> 0.8.1"])
df = Explorer.DataFrame.new(a: ["foo,bar", "bar,baz"])
Explorer.DataFrame.mutate(df, b: split(a, ","))

I see this error:

** (ErlangError) Erlang error: :nif_not_loaded
    :erlang.nif_error(:nif_not_loaded)
    (explorer 0.8.1) lib/explorer/polars_backend/native.ex:458: Explorer.PolarsBackend.Native.err/0
    (explorer 0.8.1) lib/explorer/polars_backend/data_frame.ex:625: anonymous fn/2 in Explorer.PolarsBackend.DataFrame.mutate_with/3
    (elixir 1.16.1) lib/enum.ex:2528: Enum."-reduce/3-lists^foldl/2-0-"/3
    (explorer 0.8.1) lib/explorer/polars_backend/data_frame.ex:623: Explorer.PolarsBackend.DataFrame.mutate_with/3
    iex:6: (file)

Referencing #718, it looks like this is another issue of a missing native expression -- I can try to put up a PR to add one 🙂

@billylanchantin
Copy link
Contributor

Ah yep! That's exactly what that is. And thank you, a PR would be welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants