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

fix: Fix padding for non-ASCII strings #12008

Merged
merged 3 commits into from
Oct 25, 2023
Merged

fix: Fix padding for non-ASCII strings #12008

merged 3 commits into from
Oct 25, 2023

Conversation

stinodego
Copy link
Member

Padding should take into account the number of characters, not the number of bytes. See the tests for examples.

I left the implementation of zfill alone, as it's intended for numeric strings which are ASCII, and operating on bytes is slightly more efficient.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Oct 25, 2023
@stinodego stinodego marked this pull request as ready for review October 25, 2023 07:38
@ritchie46 ritchie46 merged commit 89de5ef into main Oct 25, 2023
26 checks passed
@ritchie46 ritchie46 deleted the pad-fix branch October 25, 2023 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix 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