You have data in Pandas dataframe like
>> pd.DataFrame({'Cat' : [1,0,0], 'Fish' : [0,0,1], 'Parrot' : [0,1,0]})
Cat | Fish | Parrot
1 | 0 | 0
0 | 0 | 1
0 | 1 | 0
and you want
Animal
Cat
Parrot
Fish
how can you unexplode the boolean columns into the multivariate column with Animal heading?