This is my df
"33, BUffalo New York"
"44, Charleston North Carolina "
], columns=['row'])
My intention is to split them by a comma followed by a space or just a space like this
33 Buffalo New York
44 Charleston North Carolina
My command is as follows:
df["row"].str.split("[,\s|\s]", n = 2, expand = True)
0 STD City State
1 33 Buffalo New York
2 44 Charleston North Carolina