CorrelationsLesson 14Free preview
Pandas Correlations
This lesson is part of Pandas · All levels
Summary
Correlation measures how closely linear relationships between two numeric variables, ranging from -1 to 1. The function corr() on the DataFrame produces a correlation matrix that makes it easy to see patterns between columns. A value near 1 means in a direction, near -1 means opposite, and around 0 means weak.
Key points
- Correlations between -1 and 1
- Corr() produces a correlation matrix between numerical columns
- Positive value means a variable moving in a direction
- Correlation does not mean cause and effect.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.