Skip to content

Commit 96a8c45

Browse files
committed
dont show remainder if there are no colmns
1 parent 7302e78 commit 96a8c45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/compose/_column_transformer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@ def _sk_visual_block_(self):
12381238
# and if there are remainder columns to display
12391239
remainder_columns = self._remainder[2]
12401240
if self.remainder != "drop" and remainder_columns:
1241-
has_numeric_columns = remainder_columns and not all(
1241+
has_numeric_columns = not all(
12421242
isinstance(col, str) for col in remainder_columns
12431243
)
12441244
# Convert indices to column names when feature names are available

0 commit comments

Comments
 (0)