Skip to content

Instantly share code, notes, and snippets.

View anitaokoh's full-sized avatar

Anita Okoh anitaokoh

View GitHub Profile
mask = np.tril(df_new.corr())
sns.heatmap(df_new.corr(), annot=True, mask=mask)
matrix = np.triu(df_new.corr())
sns.heatmap(df_new.corr(), annot=True, mask=matrix)
sns.heatmap(df_new.corr(), annot = True,square=True)
sns.heatmap(df_new.corr(), annot = True, cbar=False)
sns.heatmap(df_new.corr(), annot = True, cbar_kws= {'orientation': 'horizontal'} )
sns.heatmap(df_new.corr(), annot = True, vmin=-1, vmax=1, center= 0, cmap= 'coolwarm', linewidths=3, linecolor='black')
sns.heatmap(df_new.corr(), annot = True, vmin=-1, vmax=1, center= 0, cmap= 'coolwarm')
sns.heatmap(df_new.corr(), annot = True, vmin=-1, vmax=1, center= 0)
sns.heatmap(df_new.corr(), annot = True, fmt='.1g')
sns.heatmap(df_new.corr(), annot = True)