Answers for "multiindex heatmap"

0

multiindex heatmap

df2 = df.reset_index().pivot(columns='level_0',index='level_1',values='vals')

sns.heatmap(df2)
Posted by: Guest on May-12-2021

Browse Popular Code Answers by Language