We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 226b72d commit 9894c28Copy full SHA for 9894c28
pandas/io/formats/format.py
@@ -315,11 +315,11 @@ def _get_footer(self) -> str:
315
footer += f"Length: {len(self.series)}"
316
317
if self.dtype is not False and self.dtype is not None:
318
- name = getattr(self.tr_series.dtype, "name", None)
319
- if name:
+ dtype_name = getattr(self.tr_series.dtype, "name", None)
+ if dtype_name:
320
if footer:
321
footer += ", "
322
- footer += f"dtype: {pprint_thing(name)}"
+ footer += f"dtype: {pprint_thing(dtype_name)}"
323
324
# level infos are added to the end and in a new line, like it is done
325
# for Categoricals
0 commit comments