I\'m creating a heatmap from a pandas pivot_table as below:
table2 = pd.pivot_table(df,values=\'control\',columns=\'Year\',index=\'Region\',aggfunc=np.sum) s
According to the docs, the param fmt=.2g is being applied because you've set annot=True so you can modify the format being applied to:
fmt=.2g
annot=True
sns.heatmap(table2,annot=True,cmap='Blues', fmt='g')