I have a Pandas dataframe where rows have attributes and the potential for multiple IDs. For example:
Name Weapon Color ID1 ID2 ID3
Leo Sword Blue 11 12
Raph Sai Red 13
Don Bo Purple 14 15 16
Mike Nunchuck Orange 17
I'd like to make each of those IDs its own row while retaining the row's attributes. For example:
Name Weapon Color ID
Leo Sword Blue 11
Leo Sword Blue 12
Raph Sai Red 13
Don Bo Purple 14
Don Bo Purple 15
Don Bo Purple 16
Mike Nunchuck Orange 17
How would I use chose specific columns to create rows from and which columns to retain the data from?