Customer analytics
Descriptive Analyses by Segments.
in first video.... your creating temp4 column with help of the "ID" and "Segment" for calculating Mean() value.
MAY I KNOW HOW DO YOU GET Segment column?
Note: ( In Data Set there is no segment column name)
1 answers ( 0 marked as helpful)
Hi Ramanjaneyulu,
You're correct: The 'Segment' column isn't in the original data set. Instead, it's a column we create on our own by adding the predicted segments from our kmeans_pca model.
To see exactly how the 'Segment' column is created, you can check out this lecture:
https://learn.365datascience.com/courses/customer-analytics-in-python/applying-the-segmentation-model
Best,
Eli