Skip to content

Commit 4948784

Browse files
committed
Fix
1 parent 0349837 commit 4948784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/arrow/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2579,7 +2579,7 @@ def _str_split(
25792579
n = None
25802580
if pat is None:
25812581
split_func = pc.utf8_split_whitespace
2582-
elif regex:
2582+
elif regex or (regex is None and len(pat) != 1):
25832583
split_func = functools.partial(pc.split_pattern_regex, pattern=pat)
25842584
else:
25852585
split_func = functools.partial(pc.split_pattern, pattern=pat)

0 commit comments

Comments
 (0)