# split strings around given separator/delimiter
# import Pandas as pd
import pandas as pd
# create a new data frame
df = pd.DataFrame({'Location': ['Cupertino,California', 'Los Angles, California', 'Palo Alto, California']
})
df[['City','State']] = df.Location.str.split(',',expand=True)
df
print(df)