I have got a lot of column in a csv, and I want to split a column into 2.
My column:
I need this format :
How can I split it? It is a little bit complex for me.
EDIT: I tried this one, but it isn't working.
df = pd.read_csv('/tmp/test.csv')
df[['Animals', 'Animals2']] = df['Animals'].str.split('(^\D+)', expand=True).drop(0,1)
df['Animals'] = df['Animals'].str.strip()