Correlation map

PHOTO EMBED

Fri Aug 05 2022 18:03:24 GMT+0000 (Coordinated Universal Time)

Saved by @pathikg #python

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');
content_copyCOPY

draws a triangular correlation map for a data frame

https://www.kaggle.com/code/pathikghugare/song-popularity-eda