我有大量的季节性数据,我希望以热图格式显示。我并不担心dataset中值的大小,而是更多地担心总体方向以及以后可以更详细地查看的任何模式。要做到这一点,我想要创建一个热图,只显示2种颜色(红色为零下,绿色为零及以上)。我还包括了用于样式和导出dataframe的代码。#Code to create a regular heatmap - can t
我不知道这段代码是做什么的,因为如果我删除它,heatmap中什么都不会改变,我也不知道和是干什么的。# Now enter the following code snippet to define the heatmap functiondef heatmap(data, row_labels, col_labels, ax=None, cbar_kw={},matplotlib.pyplot as plt
data = np.arr