BUG: output of df.to_string depends on whether columns is a CategoricalIndex or not #35439
Labels
Bug
Index
Related to the Index class or subclasses
Output-Formatting
__repr__ of pandas objects, to_string
Regression
Functionality that used to work in a prior pandas version
Milestone
The output of
df.to_string
is different if the columns is aCategoricalIndex
rather than a normalIndex
:We can see that the width of the "b" column depends on the width of the "a" column, if the columns are a
CategoricalIndex
.These two examples should return the same repr.
The text was updated successfully, but these errors were encountered: