8000 Update sklearn/utils/tests/test_validation.py · alexshacked/scikit-learn@ba0c0ea · GitHub
[go: up one dir, main page]

Skip to content

Commit ba0c0ea

Browse files
Update sklearn/utils/tests/test_validation.py
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
1 parent 111a9ae commit ba0c0ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sklearn/utils/tests/test_validation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,8 @@ def test_check_pandas_sparse_invalid(ntype1, ntype2):
12701270
]
12711271
)
12721272
def test_check_pandas_sparse_valid(ntype1, ntype2):
1273+
# check that we support the conversion of sparse dataframe with mixed
1274+
# type which can be converted safely.
12731275
pd = pytest.importorskip("pandas", minversion="0.25.0")
12741276
df = pd.DataFrame({'col1': pd.arrays.SparseArray([0, 1, 0],
12751277
dtype=ntype1),

0 commit comments

Comments
 (0)
0