如何可视化具有不同计数的重复类别?三基图?

2024-09-29 00:18:17 发布

您现在位置:Python中文网/ 问答频道 /正文

brand   customer demographic    customer segmentation   unique population count (cannot be added up)
A   Young Adults    energy  3
A   Young Adults    student 4
A   Old Couple  active  2
A   Old Couple  traveller   10
B   Young Adults    student 34
B   Old Couple  traveller   25
B   empty nesters   natural 23
B   empty nesters   traveller   13

上面的示例数据帧很难实现可视化。我最初的想法是在Tableau中做一个“高亮表”。但是,由于存在重复的类别,因此不可能有类似矩阵的图表。所以我的问题是:你认为Sankey图表能做得更好吗


Tags: 图表customerstudentoldemptyuniquepopulationsegmentation