Skip to content

Commit f4eb0f2

Browse files
committed
FIX: Prevent ValueError in Series.info when show_counts=False
1 parent 066a4f7 commit f4eb0f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/formats/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ def headers(self) -> Sequence[str]:
10961096

10971097
def _gen_rows_without_counts(self) -> Iterator[Sequence[str]]:
10981098
"""Iterator with string representation of body data without counts."""
1099-
yield from self._gen_dtypes()
1099+
yield from ([dtype] for dtype in self._gen_dtypes())
11001100

11011101
def _gen_rows_with_counts(self) -> Iterator[Sequence[str]]:
11021102
"""Iterator with string representation of body data with counts."""

0 commit comments

Comments
 (0)