Skip to content

Commit 16cdd21

Browse files
author
Michele Pau
committed
skip relevant tests when scipy not installed
1 parent 6eefa20 commit 16cdd21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/tests/frame/methods/test_cov_corr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ def test_corrwith(self, datetime_frame, dtype):
326326

327327
@pytest.mark.parametrize("method", ["spearman", "kendall"])
328328
def test_corrwith_categorical(self, categorical_frame, method):
329+
pytest.importorskip("scipy")
329330
other = categorical_frame["B"]
330331
result = categorical_frame.corrwith(other, method=method)
331332
expected = categorical_frame.agg(lambda x: x.corr(other, method=method))

0 commit comments

Comments
 (0)