plt.figure(figsize=(10,10)) # Getting the Upper Triangle of the co-relation matrix corr = train_df.corr() matrix = np.triu(corr) sns.heatmap(corr, mask=matrix, annot=True, annot_kws={"size": 8}, cmap="coolwarm", fmt='.1g');
plt.figure(figsize=(10,10)) # Getting the Upper Triangle of the co-relation matrix corr = train_df.corr() matrix = np.triu(corr) sns.heatmap(corr, mask=matrix, annot=True, annot_kws={"size": 8}, cmap="coolwarm", fmt='.1g');