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.
Diese Übung ist Teil des Kurses
Analyzing Survey Data in Python
Anleitung zur Übung
- Generate descriptive statistics on the non-numerical columns of the survey dataset.
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# Generate descriptive statistics on the non-numerical columns
print(____.____(____ = ____))