My dataset has these columns : company, valuation, date joined, country, city, industry, continent, and year. I want to get the industry name and company number that has the highest number of company in each continent. I don't have number of company per industry per continent column because I don't think that's the right thing to do.
I already tried this code : grouped_df = unicorn_df.groupby(['Continent','Industry']).count() grouped_df
and here's the output I expected : enter image description here I want an output that will show this :
Continent Industry Company Africa Fintech 3 Asia E-commerce & direct-to-consumer 57 Europe Fintech 53 etc
What should I do next? Notice that here we need to count the company number first because it has no column with total company number per industry per continent.
Thank you so much!