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

Visualizing multiple variable relationships

Seaborn's .pairplot() is excellent for understanding the relationships between several or all variables in a dataset by aggregating pairwise scatter plots in one visual.

Your task is to use a pairplot to compare the relationship between marriage_duration and income_woman. pandas has been loaded as pd, matplotlib.pyplot has been loaded as plt, and Seaborn has been loaded as sns.

Bu egzersiz

Exploratory Data Analysis in Python

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

Egzersiz talimatları

  • Create a pairplot to visualize the relationships between income_woman and marriage_duration in the divorce DataFrame.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Create a pairplot for income_woman and marriage_duration
sns.___(data=___, vars=[___ , ___])
plt.show()
Kodu Düzenle ve Çalıştır