Skip to content

Commit

Permalink
object fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel committed Aug 27, 2024
1 parent 618f66f commit 767857e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/core/arrays/_arrow_string_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def _str_pad(
pa_pad = pc.utf8_rpad
elif side == "both":
if pa_version_under17p0:
pa_pad = pc.utf8_center
# GH#59624 fall back to object dtype
return super()._str_pad(width, side, fillchar)
else:
# GH#54792
pa_pad = partial(pc.utf8_center, lean_left_on_odd_padding=False)
Expand Down

0 comments on commit 767857e

Please sign in to comment.