MulaiMulai sekarang secara gratis

Comparing a histogram and displot

The pandas library supports simple plotting of data, which is very convenient when data is already likely to be in a pandas DataFrame.

Seaborn generally does more statistical analysis on data and can provide more sophisticated insight into the data. In this exercise, we will compare a pandas histogram vs the seaborn displot.

Latihan ini adalah bagian dari kursus

Intermediate Data Visualization with Seaborn

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Display pandas histogram
df['Award_Amount'].plot.____()
plt.show()

# Clear out the pandas histogram
plt.clf()
Edit dan Jalankan Kode