Lesson 39 of 60
pythonHeatmaps and Pairplots for Correlation Analysis
20 minutes
Course progress65%
Correlation Visualizations
Heatmaps and pairplots help you discover relationships among many variables.
Correlation matrix
corr = df.corr()
print(corr)
Heatmap with seaborn
sns.heatmap(corr, annot=True, fmt='.2f', cmap='coolwarm', linewidths=)
plt.title()
plt.show()