Skip to content

Commit 25ced08

Browse files
fixup
1 parent 46338a0 commit 25ced08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/formats/format.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def _get_formatted_index(self):
253253
def _get_formatted_values(self):
254254
values_to_format = self.tr_series._formatting_values()
255255

256-
if bool(self.index):
256+
if self.index:
257257
leading_space = None
258258
else:
259259
leading_space = False
@@ -711,7 +711,7 @@ def _format_col(self, i):
711711
formatter = self._get_formatter(i)
712712
values_to_format = frame.iloc[:, i]._formatting_values()
713713

714-
if bool(self.index):
714+
if self.index:
715715
leading_space = None
716716
else:
717717
leading_space = False

0 commit comments

Comments
 (0)