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)
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: