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

Update polars to v0.27.2 #540

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

philss
Copy link
Member

@philss philss commented Mar 9, 2023

We may need some changes from this version to tackle these issues:

See: pola-rs/polars#6487
And also the release: https://github.com/pola-rs/polars/releases/tag/rs-0.27.0

With this update we also had to change the
Explorer.DataFrame.describe/2 function to adhere the changes from Polars. I changed the backend to simplify, since we shouldn't have a lazy version.

We may need some changes from this version to tackle these issues:
- elixir-explorer#498
- elixir-explorer#499

See: pola-rs/polars#6487
And also the release: https://github.com/pola-rs/polars/releases/tag/rs-0.27.0

With this update we also had to change the
`Explorer.DataFrame.describe/2` function to adhere the changes from
Polars. I changed the backend to simplify, since we shouldn't have a
lazy version.
if let Ok(string) = std::str::from_utf8(&binary) {
series.utf8()?.fill_null_with_values(string)?.into_series()
if let Ok(_string) = std::str::from_utf8(&binary) {
// This casting is necessary just because it's not possible to fill UTF8 series.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not? Or do we need to cast the value we are filling? Which error do you get?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@josevalim they removed the feature/function in this version. I couldn't find a replacement for this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, please try to find why they removed it but we can ship this anyway meanwhile!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear the reason, but it was removed in this pull request: pola-rs/polars#6635 (line 369 of polars/polars-core/src/chunked_array/ops/fill_null.rs file).

@philss philss merged commit a630ad7 into elixir-explorer:main Mar 10, 2023
@philss philss deleted the ps-bump-polars-to-v0.27.2 branch March 10, 2023 00:19
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.

2 participants