Seaborn showing scientific notation in heatmap for 3-digit numbers

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:

sns.heatmap(table2,annot=True,cmap='Blues', fmt="g")

Leave a Comment