I have an existing solution to split a dataframe with one column into 2 columns.
df['A'], df['B'] = df['AB'].str.split(' ', 1).str
Recently, I got the following warning FutureWarning: Columnar iteration over characters will be deprecated in future releases.
How to fix this warning?
I'm using python 3.7