-
-
Notifications
You must be signed in to change notification settings - Fork 19k
BUG: Fix Series.str.zfill for ArrowDtype string arrays #61485 #61533
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
base: main
Are you sure you want to change the base?
Conversation
bab4b9a
to
1d5c66f
Compare
057db65
to
5bd175a
Compare
5bd175a
to
9a9c203
Compare
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually looks good to me! Will just need to be updated with latest main
Thanks for the review @jorisvandenbossche , will resolve the conflicts |
7c018b0
to
4ebf1eb
Compare
…rrow-str-zfill
Implemented
_str_zfill
forArrowExtensionArray
to supportSeries.str.zfill
on Arrow-backed string arrays (ArrowDtype(pa.string())
). This fixes an AttributeError due to the method relying on_str_map
, which wasn't implemented. Used_apply_elementwise
to match the approach of other string methods. Added tests undertest_string_array.py
and confirmed they pass. Also confirmed no other relevant test files are broken and the change aligns with how other string accessors are handled.