MulaiMulai sekarang secara gratis

Boxplots for outlier detection

In this exercise, you will get a feel of what the US Airbnb Listings prices data looks like using boxplots. This will enable you to assess the range of the distribution where inliers lie. You will also get a sense of custom versus default parameters for setting whisker lengths to classify outliers.

matplotlib.pyplot has been loaded as plt and the data is available as prices.

Latihan ini adalah bagian dari kursus

Anomaly Detection in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Create a boxplot of prices
plt.____(____)
plt.show()
Edit dan Jalankan Kode