Skip to content

Commit d917e07

Browse files
committed
ENH: Centrally truncate DataFrames
1 parent cccabc6 commit d917e07

File tree

5 files changed

+557
-97
lines changed

5 files changed

+557
-97
lines changed

doc/source/_static/trunc_after.png

28.5 KB
Loading

doc/source/_static/trunc_before.png

49.7 KB
Loading

doc/source/v0.14.0.txt

+20
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ users upgrade to this version.
2323

2424
- :ref:`API Changes <whatsnew_0140.api>`
2525

26+
- :ref:`Groupby API Changes <whatsnew_0140.groupby>`
27+
2628
- :ref:`Performance Improvements <whatsnew_0140.performance>`
2729

2830
- :ref:`Prior Deprecations <whatsnew_0140.prior_deprecations>`
@@ -216,6 +218,24 @@ API changes
216218
Display Changes
217219
~~~~~~~~~~~~~~~
218220

221+
- The default way of printing large DataFrames has changed. DataFrames
222+
exceeding ``max_rows`` and/or ``max_columns`` are now displayed in a
223+
centrally truncated view, consistent with the printing of a
224+
:class:`pandas.Series` (:issue:`5603`).
225+
226+
In previous versions, a DataFrame was truncated once the dimension
227+
constraints were reached and an ellipse (...) signaled that part of
228+
the data was cut off.
229+
230+
.. image:: _static/trunc_before.png
231+
:alt: The previous look of truncate.
232+
233+
In the current version, large DataFrames are centrally truncated,
234+
showing a preview of head and tail in both dimensions.
235+
236+
.. image:: _static/trunc_after.png
237+
:alt: The new look.
238+
219239
- allow option ``'truncate'`` for ``display.show_dimensions`` to only show the dimensions if the
220240
frame is truncated (:issue:`6547`).
221241

0 commit comments

Comments
 (0)