I have a pandas dataframe that looks like this
genrename subgenre subgenrename actor
Songs 208 Dance Aamir Khan
Songs 208 Dance Aamir Khan
Songs 211 Romantic Aamir Khan
Movies 1 Romantic Aamir Khan
Songs 208 Dance Aamir Khan
Clips 15 Scenes Aamir Khan
Clips 15 Scenes Aamir Khan,Salman
Clips 12 Romantic Salman
The output dataframe that that i am trying to get would look something similar like this
Actor_Name songs clips movies
AmirKhan 4 2 1
SalmanKhan 0 2 0
Can somebody guide me on this with pandas or any other data processing libraries python have?
Thanks