DEPR: Deprecate str.split return_type by sinhrks · Pull Request #10085 · pandas-dev/pandas (original) (raw)

yes, the logic is replaced to _wrap_results_expand.

I think #10081 should be considered separately, because we can't simply use workaround for all the cases.

s = pd.Series([1.1, '2.2'])

# current behavior
s.str.split('.', expand=True)
#      0    1
# 0  NaN  NaN
# 1    2    2

# workaround
pd.read_table(StringIO(s.to_csv(None, index=None)), sep='.')
#    1  1.1
# 0  2    2

# numpy
pd.DataFrame(list(np.core.defchararray.split(s.values.astype(str), '.')))
#    0  1
# 0  1  1
# 1  2  2