maleWomanSurvey = survey[(survey.Gender == 'Man') | (survey.Gender == 'Woman')]
maleWomanSurvey[maleWomanSurvey.Occupation == 'Currently not employed'].groupby('Gender').size()*100/maleWomanSurvey.groupby('Gender').size()
I want to find percentage of currently not employed males and females in my data. How can I do this more easily? When I use group by twice, I feel like I'm doing code duplication.