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

Visualize data: histogram

For your statistics class project, you asked your friends to participate in a survey to better understand the gender differences in specific preferences in young adults. Part of survey, young_people, asked for respondents’ Gender, Age, Height, and Weight.

In this exercise, you will visualize the distribution of the respondents' height.

pandas, scipy.stats and matplotlib.pyplot have been loaded for you as pd, stats and plt, respectively.

Bu egzersiz

Analyzing Survey Data in Python

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

Egzersiz talimatları

  • Plot the distribution of values in the Height column using a histogram.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Histogram of Height column
young_people.____.____(kind=____)
plt.show()
Kodu Düzenle ve Çalıştır