I was trying to use a heatmap form seaborn on a pivoted pandas dataframe like in the hyperlink which works
df = pd.DataFrame(np.random.randint(1,100,size = (3,2)))
df.columns = ['A','B']
df
sns.heatmap(df, annot=True, fmt="d", linewidths=.5,cmap="RdYlGn")
Output of code block - Entire Dataframe formatted as single heatmap The output picks 45 as min and 86 as max and color codes the entire dataframe
But what i was unable to do was to apply the heatmap column wise i.e. like conditional formatting applied column by colummn instead of for the whole dataframe. like in the example in this hyperlink -
For col1 the min of 45 and and max of 88 is picked and formatted , for col2 70 & 86 are picked respectively Conditional formatted column wise but still displayed as a table. . In the examples i saw either the rest of the df was made to zeroes and only 1 column was formatted or the whole dataframe got the formatting
Can anyone help on this please