Skip to content

Commit edbc33d

Browse files
author
MomIsBestFriend
committed
Appling jbrockmendel's suggestion
1 parent 0995466 commit edbc33d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/core/nanops.py

+1
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)