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

feat(rust, python)!: Cut label formatting #10083

Closed
wants to merge 8 commits into from

Conversation

magarick
Copy link
Contributor

Labels in cut and qcut can now be formatted with variable precision. They can also optionally use scientific notation. Technically this is breaking since I had to pick a default for precision and set it at 3, but I don't think anyone actually wanted the old behavior anyway.

If there's a way to make the string processing on the Rust side better I'd love to hear it. Because string formatting in Rust is torture and I tried but couldn't find anything easier than what I ended up with.

@github-actions github-actions bot added breaking Change that breaks backwards compatibility enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars labels Jul 26, 2023
@magarick
Copy link
Contributor Author

@ritchie46 ping!
It might look like a lot of code but it doesn't change the core behavior. Just fixes an annoyance people were asking about.

@magarick
Copy link
Contributor Author

Rebased on the latest changes. Nothing too controversial here. Though if there's a way to more efficiently format the strings in rust that would be nice at some point.

@stinodego
Copy link
Member

Going to close this in light of the pending redesign (#10468)

@stinodego stinodego closed this Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Change that breaks backwards compatibility enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants