Skip to content

Commit 6804926

Browse files
author
MomIsBestFriend
committed
Added 'pearson' to methods list
1 parent 0be573e commit 6804926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/nanops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ def nancorr(a, b, method="pearson", min_periods=None):
12411241

12421242

12431243
def get_corr_func(method):
1244-
if method in ["kendall", "spearman"]:
1244+
if method in ["kendall", "spearman", "pearson"]:
12451245
from scipy.stats import kendalltau, spearmanr
12461246
elif callable(method):
12471247
return method

0 commit comments

Comments
 (0)