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

Univariate plots in seaborn

Seaborn is a popular plotting library. It embraces the concepts of "tidy data" and allows for quick ways to plot multiple variables.

You will begin by generating univariate plots. Barplots and histograms are created using the countplot() and histplot() functions, respectively.

import seaborn as sns
import matplotlib.pyplot as plt

# Bar plot
sns.countplot(x='column_name', data=df)
plt.show()

# Histogram
sns.histplot(df['column_name'], kde = True)
plt.show()

Bu egzersiz

Python for R Users

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

import seaborn as sns
import matplotlib.pyplot as plt

# Bar plot
sns.____(x=____, data=tips)
plt.show()
Kodu Düzenle ve Çalıştır