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

add nil expr for summarise and mutate - Py Polars lit(None) #816

Merged
merged 3 commits into from Jan 13, 2024

Conversation

lkarthee
Copy link
Member

This PR add lit(None). Can be used to align describe with Py Polars.

df = DF.new(strs: ["a", "b", "c"], nums: [1, 2, 3])
DF.mutate(df, c: nil)
#Explorer.DataFrame<
  Polars[3 x 3]
  strs string ["a", "b", "c"]
  nums s64 [1, 2, 3]
  c null [nil, nil, nil]
>
DF.summarise(df, c: nil)
#Explorer.DataFrame<
  Polars[1 x 1]
  c null [nil]
>

I will add test cases after review.

@josevalim josevalim merged commit f28b0c6 into elixir-explorer:main Jan 13, 2024
4 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@lkarthee lkarthee deleted the add_nil_expr branch January 13, 2024 11:30
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 this pull request may close these issues.

None yet

2 participants