Skip to content

Commit

Permalink
Merge pull request #7086 from bjonen/adj_trunc
Browse files Browse the repository at this point in the history
Tidy representation when truncating dfs
  • Loading branch information
jreback committed May 16, 2014
2 parents cccabc6 + d917e07 commit 48729e2
Show file tree
Hide file tree
Showing 5 changed files with 557 additions and 97 deletions.
Binary file added doc/source/_static/trunc_after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/source/_static/trunc_before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions doc/source/v0.14.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ users upgrade to this version.

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

- :ref:`Groupby API Changes <whatsnew_0140.groupby>`

- :ref:`Performance Improvements <whatsnew_0140.performance>`

- :ref:`Prior Deprecations <whatsnew_0140.prior_deprecations>`
Expand Down Expand Up @@ -216,6 +218,24 @@ API changes
Display Changes
~~~~~~~~~~~~~~~

- The default way of printing large DataFrames has changed. DataFrames
exceeding ``max_rows`` and/or ``max_columns`` are now displayed in a
centrally truncated view, consistent with the printing of a
:class:`pandas.Series` (:issue:`5603`).

In previous versions, a DataFrame was truncated once the dimension
constraints were reached and an ellipse (...) signaled that part of
the data was cut off.

.. image:: _static/trunc_before.png
:alt: The previous look of truncate.

In the current version, large DataFrames are centrally truncated,
showing a preview of head and tail in both dimensions.

.. image:: _static/trunc_after.png
:alt: The new look.

- allow option ``'truncate'`` for ``display.show_dimensions`` to only show the dimensions if the
frame is truncated (:issue:`6547`).

Expand Down
Loading

0 comments on commit 48729e2

Please sign in to comment.