I've got a sizable csv file with unorganized data. It is made up of music tags. In an effort to make analysis easier, I'm attempting to combine all of the comparable tags.
An example of what I have:
Band1, hiphop, pop, rap
Band2, rock, rap, pop
band3, hiphop, rap
The output I am looking for would be like this:
Band1, hiphop, pop, rap
Band2, NaN, pop, rap, rock
Band3 hiphop, NaN, rap
What is the best way to sort the data like this?