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 eb4a239 commit 8e82c82Copy full SHA for 8e82c82
pandas/io/formats/format.py
@@ -616,10 +616,6 @@ def to_string(self):
616
else: # max_cols == 0. Try to fit frame to terminal
617
text = self.adj.adjoin(1, *strcols).split('\n')
618
max_len = Series(text).str.len().max()
619
- headers = [ele[0] for ele in strcols]
620
- # Size of last col determines dot col size. See
621
- # `self._to_str_columns
622
- size_tr_col = len(headers[self.tr_size_col])
623
# plus truncate dot col
624
dif = max_len - self.w
625
# '+ 1' to avoid too wide repr (GH PR #17023)
0 commit comments