Skip to content

Commit 422f9a2

Browse files
author
MomIsBestFriend
committed
Appling jbrockmendel's suggestion
1 parent 0403012 commit 422f9a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/core/nanops.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,7 @@ def nancorr(
13061306

13071307
def get_corr_func(method) -> Callable:
13081308
if method in ["kendall", "spearman", "pearson"]:
1309+
from scipy import stats
13091310
from scipy.stats import kendalltau, spearmanr
13101311
elif callable(method):
13111312
return method

0 commit comments

Comments
 (0)