We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0995466 commit edbc33dCopy full SHA for edbc33d
pandas/core/nanops.py
@@ -1306,6 +1306,7 @@ def nancorr(
1306
1307
def get_corr_func(method) -> Callable:
1308
if method in ["kendall", "spearman", "pearson"]:
1309
+ from scipy import stats
1310
from scipy.stats import kendalltau, spearmanr
1311
elif callable(method):
1312
return method
0 commit comments