pandas_exercises icon indicating copy to clipboard operation
pandas_exercises copied to clipboard

Alternative to pandas_exercises/03_Grouping/Occupation/ Step 8

Open urtechoc opened this issue 2 years ago • 0 comments

Hi,

First I wanted to say thank you for these notebooks, it's been great learning from them.

For Step 8. For each occupation present the percentage of women and men:

round(users.groupby(['occupation'])['gender'].value_counts(normalize = True),2)*100

Regards!

urtechoc avatar Feb 08 '23 20:02 urtechoc