Skip to content

Commit c700144

Browse files
[ArrowStringArray] PERF: bypass some padding code in _wrap_result
1 parent 896256e commit c700144

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
@@ -284,7 +284,7 @@ def cons_row(x):
284284
return [x]
285285

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

0 commit comments

Comments
 (0)