8000
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 ee19ac7 commit 19ed2f3Copy full SHA for 19ed2f3
sklearn/datasets/tests/test_california_housing.py
@@ -3,8 +3,9 @@
3
Skipped if california_housing is not already downloaded to data_home.
4
"""
5
6
+import pytest
7
+
8
from sklearn.datasets import fetch_california_housing
-from sklearn.utils import check_pandas_support
9
from sklearn.utils._testing import SkipTest
10
from sklearn.datasets.tests.test_common import check_return_X_y
11
from functools import partial
@@ -28,7 +29,7 @@ def test_fetch():
28
29
30
31
def test_fetch_asframe():
- pd = check_pandas_support('test_fetch_asframe with as_frame=True')
32
+ pd = pytest.importorskip('pandas')
33
bunch = fetch(as_frame=True)
34
frame = bunch.frame
35
assert (hasattr(bunch, 'frame') is True)
0 commit comments