We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 612e0c0 + d2c57da commit a5e1084Copy full SHA for a5e1084
pandas/core/strings.py
@@ -624,6 +624,7 @@ def str_pad(arr, width, side='left', fillchar=' '):
624
625
def str_split(arr, pat=None, n=None, return_type='series'):
626
"""
627
+ Deprecated: return_types 'series', 'index', 'frame' are now deprecated
628
Split each string (a la re.split) in array by given pattern, propagating NA
629
values
630
@@ -632,8 +633,8 @@ def str_split(arr, pat=None, n=None, return_type='series'):
632
633
pat : string, default None
634
String or regular expression to split on. If None, splits on whitespace
635
n : int, default None (all)
- return_type : {'series', 'index', 'frame', 'same', 'expand'}, default 'series'
636
- If frame or expand, returns a DataFrame (elements are strings)
+ return_type : {'same', 'expand'}, default 'series'
637
+ If expand, returns a DataFrame (elements are strings)
638
If series, index or same, returns the same type as the original object
639
(elements are lists of strings).
640
0 commit comments