Details
-
Bug
-
Status: Resolved
-
P3
-
Resolution: Won't Fix
-
None
Description
series.str.split(expand=True) and rsplit(expand=True) usually produce None for missing values:
>>> s.str.split(expand=True) 0 1 2 3 4 0 this is a regular sentence 1 https://docs.python.org/3/tutorial/index.html None None None None 2 NaN NaN NaN NaN NaN
And NaNs are only produced for invalid inputs. Our implementation populates missing values with NaN, because they're added in the final pd.concat.