Menu

Basic Correlation Analysis

Basic Correlation Analysis

Correlation helps measure how strongly variables are related.

Code

correlation_matrix = df.corr(

numeric_only=True

)

print(correlation_matrix)

Explanation

Correlation values range between:

Value

Interpretation

+1Strong positive relationship
0No relationship
-1Strong negative relationship

Insight

Correlation analysis helps identify variables that move together and supports deeper weather analysis.