Skip to content

Commit 9894c28

Browse files
author
Alvaro Santiesteban
committed
Address feedback comments
1 parent 226b72d commit 9894c28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/io/formats/format.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,11 @@ def _get_footer(self) -> str:
315315
footer += f"Length: {len(self.series)}"
316316

317317
if self.dtype is not False and self.dtype is not None:
318-
name = getattr(self.tr_series.dtype, "name", None)
319-
if name:
318+
dtype_name = getattr(self.tr_series.dtype, "name", None)
319+
if dtype_name:
320320
if footer:
321321
footer += ", "
322-
footer += f"dtype: {pprint_thing(name)}"
322+
footer += f"dtype: {pprint_thing(dtype_name)}"
323323

324324
# level infos are added to the end and in a new line, like it is done
325325
# for Categoricals

0 commit comments

Comments
 (0)