Machine Learning: Unsupervised and Supervised Learning Techniques
1. Unsupervised Learning: Customer Segmentation
1.1 Extracting Customer IDs
We can obtain customer IDs from a clustered DataFrame using the following code:
clustered_df['CustomerID'].values
These customer IDs can be used to extract names and email addresses from a customer database. For example, the resulting array might look like this:
array([125, 129, 131, 135, 137, 139, 141, 145, 147, 149, 151, 153, 155,
157, 159, 161, 163, 165, 167, 169, 171, 173, 175, 177, 179, 181,
183, 185, 187, 189, 191, 193, 195, 197, 199], dtype=int64)
超级会员免费看
订阅专栏 解锁全文
1282

被折叠的 条评论
为什么被折叠?



