Scipy scipy.stats.pearsonr Method
Python Scipy scipy.stats.pearsonr() method is used to find Pearson correlation coefficient, which represents linear relationships between two variables. It also gives the p-value for testing non-correlation. The value of the Pearson correlation coefficient ranges between -1 to +1. If it is near -1, there is a strong negative linear relationship between variables. If it is 0, there is no linear relation, and at +1, there is a strong relationship between variables.