MulaiMulai sekarang secara gratis

Find the z-score

Now that you know the spread of heights from the survey, you want to dig further into the survey. Remember, part of survey, young_people, asked for respondents' Gender, Age, Height, and Weight.

In this exercise, you will find outliers in the height column.

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

Latihan ini adalah bagian dari kursus

Analyzing Survey Data in Python

Lihat Kursus

Petunjuk latihan

  • Find the z-score of the Height column.
  • Find the outliers in Height_zscore for this survey.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# z-score of `Height` column
young_people['Height_zscore'] = ____.____(young_people.____)

# Outliers in `Height_zscore`
height_outliers = young_people[
  (young_people.____>=____)
  |(young_people.____<=____)
]
print(height_outliers)
Edit dan Jalankan Kode