split column by comma pandas

39

df[['A', 'B']] = df['AB'].str.split(' ', 1, expand=True)
series.str.split(',', expand=True)

Comments

Submit
0 Comments