1. Learn
  2. /
  3. Courses
  4. /
  5. Analyzing Survey Data in Python

Connected

Exercise

Weighted sampling on handedness

You are a part of a team of university researchers set out to conduct a study on left-handedness. You conduct a survey via your university's social media platforms, asking participants which hand they use for certain tasks. Your survey asks for respondents' gender, Gender, age Age, and handedness Left - right handed.

The dataset, pandas, and matplotlib.pyplot have been uploaded for you as hand_survey, pd, and plt, respectively.

Instructions 1/3

undefined XP
    1
    2
    3
  • Group your data by gender and handedness, and count by the Age column.
  • Create a new column that calculates the percentage of each respondent type.