I have this code:
october_data_grouped = october_data.groupby(["Department", "Headcount", "Day"]).agg({'User ID': 'nunique'})
october_data_grouped.unstack(fill_value=0)
And this gives the output below:
Is there a way I can make a calculation that each individual entry is divided by the headcount [e.g. for row Accounts, day 1 would be 17% (6/35), day 4 would be 25% (9/35) etc.]