My csv looks like this:
name; street; number;
------------------------------------
Jimmy; Nice Street 24; 24;
Carl; Great Street; 128;
Tim; Long Street 5; - ;
...
I read that csv with panda like this:
data = pd.read_csv(r'export.csv')
x = data[['name', 'street', 'number']]
As you can see the users did not input their adress correctly in line 1 and 2.
So what I want to do is check each street name for a name and if
there is already a number in it. If there is, erase the number from the street row and put it in the number row if there isn't one yet.
All lines should look like line 2 later.
I am new to python and pandas and can't figure out the smoothest way to do this. Any input is much appreaciated!