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

Rug plot and kde shading

Now that you understand some function arguments for displot(), we can continue further refining the output. This process of creating a visualization and updating it in an incremental fashion is a useful and common approach to look at data from multiple perspectives.

Seaborn excels at making this process simple.

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

Intermediate Data Visualization with Seaborn

Kursa Göz Atın

Egzersiz talimatları

  • Create a displot of the Award_Amount column in the df.
  • Configure it to show a shaded kde plot (using the kind and fill parameters).
  • Add a rug plot above the x axis (using the rug parameter).
  • Display the plot.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Create a displot of the Award Amount
sns.displot(df['____'],
             kind='____',
             rug=____,
             fill=____)

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