Python 的客群分群
Karolis Urbonas
Head of Data Science, Amazon
視覺化同群分析的最簡方式
同時包含資料與圖表
用 seaborn 只需幾行程式碼

retention.round(3)*100

import seaborn as sns import matplotlib.pyplot as pltplt.figure(figsize=(10, 8))plt.title('Retention rates')sns.heatmap(data = retention, annot = True, fmt = '.0%', vmin = 0.0, vmax = 0.5, cmap = 'BuGn')plt.show()

Python 的客群分群