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

Visualize RFM distributions

We have loaded the dataset with RFM values you calculated previously as datamart_rfm. You will now explore their distributions.

The plt.subplot(...) call before the seaborn function call allows you to plot several subplots in one chart, you do not have to change it.

Libraries seaborn and matplotlib.pyplot have been loaded as sns and plt respectively. Feel free to explore the dataset in the console.

Bu egzersiz

Customer Segmentation in Python

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

Egzersiz talimatları

  • Plot the distribution of Recency.
  • Plot the distribution of Frequency.
  • Plot the distribution of MonetaryValue.
  • Show the plot.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Plot recency distribution
plt.subplot(3, 1, 1); sns.____(datamart_rfm['____'])

# Plot frequency distribution
plt.____; ____(____['____'])

# Plot monetary value distribution
____

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