0Pricing
Data Science Academy · Lesson

Read a Correlation Heatmap

Spotting redundant features fast.

Why a Heatmap

With many columns, reading correlations one pair at a time is painful. A heatmap shows every pairing at once as a grid of colors. 🔥

Start With corr

First build a correlation matrix. In pandas, calling corr on a numeric DataFrame returns a square table of every column paired with every other.

corr = df.corr(numeric_only=True)
print(corr.round(2))

All lessons in this course

  1. Correlation Is Not Causation
  2. Pearson vs Spearman
  3. Read a Correlation Heatmap
  4. Skew, Kurtosis, and Normality
← Back to Data Science Academy