We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 820da18 commit 8492e1eCopy full SHA for 8492e1e
pandas/io/formats/csvs.py
@@ -53,7 +53,7 @@ def __init__(self, obj, path_or_buf=None, sep=",", na_rep='',
53
# if index label is not explicitly called, index label is True if
54
# header or index is not False; otherwise, index label is set to False
55
if index_label is None:
56
- if self.header is False or self.header is None or not self.index:
+ if not self.header or not self.index:
57
self.index_label = False
58
else:
59
self.index_label = True
0 commit comments