Skip to content

Commit 815579a

Browse files
committed
object fallback
1 parent 8fac1a8 commit 815579a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/arrays/_arrow_string_mixins.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def _str_pad(
5454
pa_pad = pc.utf8_rpad
5555
elif side == "both":
5656
if pa_version_under17p0:
57-
pa_pad = pc.utf8_center
57+
# GH#59624 fall back to object dtype
58+
return super()._str_pad(width, side, fillchar)
5859
else:
5960
# GH#54792
6061
pa_pad = partial(pc.utf8_center, lean_left_on_odd_padding=False)

0 commit comments

Comments
 (0)