- Entrada
id | Location |
---|---|
0 | UK ~ London~East London ~ Mile End |
1 | UK ~ London~East London ~ Shadwe |
- Comando:
XlocTree = pd.DataFrame(df_location_tree.rel.str.split('~', 3).tolist(), columns = ['ABBR','City','Region', 'Local'])
- Saida
id | ABBR | City | Region | Local |
---|---|---|---|---|
0 | UK | London | East London | Mile End |
1 | UK | London | East London | Shadwe |