如何使用熊猫绘制热图

时间:2018-09-29 11:26:36

标签: python pandas heatmap

我在三列中列出了一个百分比值(所有三个值之和等于100%)

def add_points(accepter):
    depth = 0
    while accepter has an inviter:
        accepter.inviter.points += (0.5)^depth
        accepter = accepter.inviter
        depth += 1

我想用熊猫作为绘制热图的方法。基本上,我不想显示数字行,而是显示颜色行。即,从蓝色到红色的比例,这三列中的每一列所占的比例是多少?

0 个答案:

没有答案