Thursday, April 9, 2020

Answer for Customer analytics

https://365datascience.com/dwqa-answer/answer-for-customer-analytics-2/ -

Hi Ramanjaneyulu, 

thanks for reaching out! 

The error you get is connected to the ‘Legend’ and not the code for the plot. So, make sure you include a mapping for the segments, which we add as a Legend column:

df_segm_pca_kmeans[‘Legend’] = df_segm_pca_kmeans[‘Segment K-means PCA’].map(0:’standard’,
                                                                                                                                                1:’career focused’,
                                                                                                                                                2:’fewer opportunities’,
                                                                                                                                                3:’well-off’)

And make sure this comes before you plot by the Components. 

 

Best, 

Eli




#365datascience #DataScience #data #science #365datascience #BigData #tutorial #infographic #career #salary #education #howto #scientist #engineer #course #engineer #MachineLearning #machine #learning #certificate #udemy

No comments:

Post a Comment