Skip to content

Commit 278b06c

Browse files
committed
CLN: print the categorical levels w/o regards to the truism of the dtype
1 parent f624c0a commit 278b06c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/format.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,7 @@ def _get_footer(self):
191191
footer += 'dtype: %s' % com.pprint_thing(name)
192192

193193
# level infos are added to the end and in a new line, like it is done for Categoricals
194-
# Only added when we request a name
195-
if name and com.is_categorical_dtype(self.tr_series.dtype):
194+
if com.is_categorical_dtype(self.tr_series.dtype):
196195
level_info = self.tr_series._values._repr_categories_info()
197196
if footer:
198197
footer += "\n"

0 commit comments

Comments
 (0)