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

Birden çok grafik

Son egzersizde, 1 yatak odalı ve 2 yatak odalı daireler için adil piyasa kiralarının karşılaştırmasını çizeceğiz.

Bu egzersiz, kursun bir parçasıdır

Seaborn ile Orta Düzey Veri Görselleştirme

Kursa Göz Atın

Egzersiz talimatları

  • İki eksen nesnesi oluştur: ax0 ve ax1.
  • fmr_1 değerlerini ax0 üzerinde ve fmr_2 değerlerini ax1 üzerinde çiz.
  • Grafikleri yan yana göster.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Create a plot with 1 row and 2 columns that share the y axis label
fig, (ax0, ax1) = plt.subplots(nrows=____, ncols=____, sharey=____)

# Plot the distribution of 1 bedroom apartments on ax0
sns.histplot(df['____'], ax=____)
____.set(xlabel="1 Bedroom Fair Market Rent", xlim=(100,1500))

# Plot the distribution of 2 bedroom apartments on ax1
sns.histplot(df['____'], ax=____)
____.set(xlabel="2 Bedroom Fair Market Rent", xlim=(100,1500))

# Display the plot
plt.show()
Kodu Düzenle ve Çalıştır