I have a data set (csv file) of names that list names with number of people with that name, their "rank" and the name itself.
I am looking for a way to separate all the names into single lines ideally in excel - but maybe something in pandas is an option.
The problem is that many of the lines contain multiple names comma separated.
the data looks like this.
rank | number of occurrences | name
1 | 10000 | marie
2 | 9999 | sophie
3 | 9998 | ellen
...
...
50 | 122 | jude, allan, jaspar
I would like to have each name on an individual line alongside its correspondent number of occurrences. Its fine that the rank is duplicated.
Something like this
rank | number of occurrences | name
1 | 10000 | marie
2 | 9999 | sophie
3 | 9998 | ellen
..
...
50 | 122 | jude
50 | 122 | allan
50 | 122 | jaspar