CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Analyzing Survey Data in Python

Afficher le cours

Instructions

  • Generate descriptive statistics on the non-numerical columns of the survey dataset.

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Generate descriptive statistics on the non-numerical columns
print(____.____(____ = ____))
Modifier et exécuter le code