Skip to content

Commit

Permalink
Appling jbrockmendel's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
MomIsBestFriend committed Dec 28, 2019
1 parent 0403012 commit 422f9a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pandas/core/nanops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,7 @@ def nancorr(

def get_corr_func(method) -> Callable:
if method in ["kendall", "spearman", "pearson"]:
from scipy import stats
from scipy.stats import kendalltau, spearmanr
elif callable(method):
return method
Expand Down

0 comments on commit 422f9a2

Please sign in to comment.