Skip to content

Commit e4aa0c1

Browse files
committed
BUG-22984 Fix truncation of DataFrame representations
1 parent ee80803 commit e4aa0c1

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

doc/source/whatsnew/v0.24.0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ Other Enhancements
194194
- :meth:`Index.to_frame` now supports overriding column name(s) (:issue:`22580`).
195195
- New attribute :attr:`__git_version__` will return git commit sha of current build (:issue:`21295`).
196196
- Compatibility with Matplotlib 3.0 (:issue:`22790`).
197+
- Representation of :class:`DataFrame` fills up the terminal window better
197198

198199
.. _whatsnew_0240.api_breaking:
199200

pandas/io/formats/format.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,6 @@ def to_string(self):
620620
# Size of last col determines dot col size. See
621621
# `self._to_str_columns
622622
size_tr_col = len(headers[self.tr_size_col])
623-
max_len += size_tr_col # Need to make space for largest row
624623
# plus truncate dot col
625624
dif = max_len - self.w
626625
# '+ 1' to avoid too wide repr (GH PR #17023)

0 commit comments

Comments
 (0)