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

Visualize snake plot

Good work! You will now use the melted dataset to build the snake plot. The melted data is loaded as datamart_melt.

The seaborn library is loaded as sns and matplotlib.pyplot is available as plt.

You can use the console to explore the melted dataset.

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

Customer Segmentation in Python

Kursa Göz Atın

Egzersiz talimatları

  • Add the plot title.
  • Add the X-axis label "Metric".
  • Add the Y-axis label "Value".
  • Plot a line for each value of the Cluster in datamart_melt.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Add the plot title
plt.____('Snake plot of normalized variables')

# Add the x axis label
plt.____('____')

# Add the y axis label
plt.____('____')

# Plot a line for each value of the cluster variable
sns.____(____=____, x='____', y='____', hue='____')
plt.show()
Kodu Düzenle ve Çalıştır