I have csv file called data.csv which contains full address format separated by commas:
id;address
1;village1, parish1, county1
2;village2, parish2, county2
3;village3, parish3, county3
Using pandas, I would like to export those last 2 (parish and county) into separate columns from the right.
and export them as exported.csv
eg.
import pandas as pd
df = pd.read_csv('data.csv', delimiter=';')
...
df.to_csv('exported.csv', sep=';', encoding='utf8', index=True)
print ("Done!")
Note: those rows are over 100k
How to do that?