I have a dataset with a lot of columns. The data is structured like this:
id Artist 1 Artist 2 Artist 3
1 Red hot
2 Wiz Red hot
3 Red hot Wiz Bronson
4 Bronson Bruce Red hot
5 Wiz Bronson
6 Red Hot
And I need it to be like this:
id Artist
1 Red hot
2 Wiz
2 Red hot
3 Red hot
3 Wiz
3 Bronson
4 Red hot
4 Bronson
4 bruce
5 Wiz
5 Bronson
6 Red hot
Is there an easy way to do this in pandas? I've tried using melt from this response, but it's not what im aiming it: pandas convert some columns into rows
thx in advance!