Skip to content

Commit 8e82c82

Browse files
committed
BUG-22984 Fix flake8 issues
1 parent eb4a239 commit 8e82c82

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pandas/io/formats/format.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,6 @@ def to_string(self):
616616
else: # max_cols == 0. Try to fit frame to terminal
617617
text = self.adj.adjoin(1, *strcols).split('\n')
618618
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])
623619
# plus truncate dot col
624620
dif = max_len - self.w
625621
# '+ 1' to avoid too wide repr (GH PR #17023)

0 commit comments

Comments
 (0)