We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46338a0 commit 25ced08Copy full SHA for 25ced08
pandas/io/formats/format.py
@@ -253,7 +253,7 @@ def _get_formatted_index(self):
253
def _get_formatted_values(self):
254
values_to_format = self.tr_series._formatting_values()
255
256
- if bool(self.index):
+ if self.index:
257
leading_space = None
258
else:
259
leading_space = False
@@ -711,7 +711,7 @@ def _format_col(self, i):
711
formatter = self._get_formatter(i)
712
values_to_format = frame.iloc[:, i]._formatting_values()
713
714
715
716
717
0 commit comments