Skip to content

Commit 2d7107c

Browse files
simonjayhawkinsTLouf
authored andcommitted
[ArrowStringArray] PERF: bypass some padding code in _wrap_result (pandas-dev#41567)
1 parent cff5b13 commit 2d7107c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/strings/accessor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def cons_row(x):
282282
return [x]
283283

284284
result = [cons_row(x) for x in result]
285-
if result:
285+
if result and not self._is_string:
286286
# propagate nan values to match longest sequence (GH 18450)
287287
max_len = max(len(x) for x in result)
288288
result = [

0 commit comments

Comments
 (0)