I have a dataframe which I am working with which contains information about chemical reactions.
From this, I'd like to take create a new dataframe where each type of chemical in 'class' (photocatalyst, base, reagent, etc.) is a column the categories and the rows contain each of the iterations of that chemical (i.e. where a 'photocatalyst' column contains PC1, PC2, PC3, etc.).
I tried using the .groupby() operation, but couldn't figure out a function which would let me do this. Any help is greatly appreciated.