Customer Segmentation in Python
Karolis Urbonas
Head of Data Science, Amazon
log
will not work# Unskew the data import numpy as np datamart_log = np.log(datamart_rfm)
# Normalize the variables from sklearn.preprocessing import StandardScaler scaler = StandardScaler() scaler.fit(datamart_log)
# Store for clustering datamart_normalized = scaler.transform(datamart_log)
Customer Segmentation in Python