# 将航班经过的地点进行分割
df['Location'].str.split(', ').head()
# 使用expand
df['Location'].str.split(', ', expand=True).head()
# 使用n
df['Location'].str.split(', ', expand=True, n=1).head()
只有当expand为False时,才可以使用str[]或者str.get()获取数据
# 获取分割的结果
df['Location'].str.split(', ').str.get(0).head()
df['Location'].str.split(', ').str[1].head()