@@ -1660,22 +1660,6 @@ def test_sk_visual_block_full_transform():
16601660 assert isinstance (visual_block .estimators [0 ], Normalizer )
16611661
16621662
1663- def test_sk_visual_block_remainder_with_preprocessor ():
1664- """Check that visual_block doesn't cut the remainder if it is a transformer
1665- Non-regression test - https://github.com/scikit-learn/scikit-learn/issues/33513
1666- """
1667- ct = ColumnTransformer (
1668- [("norm1" , Normalizer (), [0 , 1 ])], remainder = StandardScaler ()
1669- )
1670- X = np .array ([[0 , 4 , 3 ], [3 , 3 , 3 ]])
1671- ct .fit (X )
1672- visual_block = ct ._sk_visual_block_ ()
1673- assert visual_block .names == ("norm1" , "remainder" )
1674- assert visual_block .name_details == ([0 , 1 ], [2 ])
1675- assert isinstance (visual_block .estimators [0 ], Normalizer )
1676- assert isinstance (visual_block .estimators [1 ], StandardScaler )
1677-
1678-
16791663@pytest .mark .parametrize ("explicit_colname" , ["first" , "second" , 0 , 1 ])
16801664@pytest .mark .parametrize ("remainder" , [Trans (), "passthrough" , "drop" ])
16811665def test_column_transformer_reordered_column_names_remainder (
0 commit comments