Session Ready
Exercise

Assign labels to raw data

You will now analyze the average RFM values of the three clusters you've created in the previous exercise. We have loaded the raw RFM dataset as datamart_rfm, and the cluster labels as cluster_labels. pandas is available as pd.

Feel free to explore the date in the console.

Instructions
100 XP
  • Create a new DataFrame by adding a cluster label column to datamart_rfm.
  • Create a groupby element on a Cluster column.
  • Calculate average RFM values and segment sizes per each Cluster value.