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

Plotting multiple variables

Since we are using lmplot() now, we can look at the more complex interactions of data. This data set includes geographic information by state and area. It might be interesting to see if there is a difference in relationships based on the Region of the country.

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

Intermediate Data Visualization with Seaborn

Kursa Göz Atın

Egzersiz talimatları

  • Use lmplot() to look at the relationship between insurance_losses and premiums.
  • Plot a regression line for each Region of the country.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Create a regression plot using hue
sns.lmplot(data=df,
           x="____",
           y="____",
           ____="Region")

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