BaşlayınÜcretsiz Başlayın

Measures of variability

After studying the frequency distribution of respondents, you, as a researcher, want to analyze the survey some more. Remember, the survey, dietary_habits asked participants their age group, Age, gender, Gender, how many meals they had in a day, meals_per_day, and how many times a week they ordered in or ate out, eat_out_per_wk.

In this exercise, you will calculate the variability for each category in the survey data.

pandas as been loaded for you as pd.

Bu egzersiz

Analyzing Survey Data in Python

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Find the range of meals eaten out or ordered.
  • Find the standard deviation of meals eaten out or ordered.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Find the range of meals eaten out or ordered
range_value = ____
print(range_value)

# Find the standard deviation of meals eaten out or ordered
std_dev_value = ____
print(std_dev_value)
Kodu Düzenle ve Çalıştır