Matplotlib and seaborn 3 · seaborn

Correlation heatmap

Show how numeric columns relate, with values written in the cells.

sns.heatmap(df.select_dtypes("number").corr(), annot=True, cmap="coolwarm", vmin=-1, vmax=1)

Official Matplotlib and seaborn 3 documentation

More seaborn commands

All seaborn commands · Matplotlib and seaborn 3 cheatsheet

Was this page helpful?