Descriptive statistics
To get vital health data for tracking youth body mass index, health officials sent out a youth survey to a nationally representative sample of youths between 14 to 20 years of age as of December 31, 1999. The dataset tracks the age Age
, height in inches Height_in
, weight in pounds Weight_lbs
, gender Gender
, and the self reported multiple choice answer to the question, 'How would you describe your weight?' describe_weight
.
The cleaned up dataset of the survey has been loaded for you as youth_survey_clean
. In this exercise, you will describe the dataset using python.
pandas and NumPy have been loaded as pd
and np
, respectively.
This exercise is part of the course
Analyzing Survey Data in Python
Exercise instructions
- Generate descriptive statistics on the non-numerical columns of the survey dataset.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Generate descriptive statistics on the non-numerical columns
print(____.____(____ = ____))