The Pearson Correlation: from -1 to 1 measuring the linear relationship between two variables
The Spearman Correlation: from -1 to 1 measuring the monotonic relationship between two variables
The Spearman correlation is 1 if as one variable increases, the other does as well, even if the relationship is not linear. On the other hand, the Pearson correlation can only be one if the increase is exactly linear. These are best illustrated by example.
from scipy.stats import spearmanr import numpy as np spr = spearmanr(x, y).correlation pcr = np.corrcoef(x, y)[0, 1]