MediumScenarioPython and pandas
How do you compute the share of each category within its group?
This answer is part of Pro
12 of 186 Data Analyst answers are free. A Pro pass opens the rest, including hands-on task steps.
PreviousHow would you clean inconsistent text categories like 'Delhi', 'delhi ' and 'New Delhi'?Next How do you reshape wide monthly columns into rows?