Skip to content

Commit a4d4d3c

Browse files
committed
DOC: wide repr example for release notes
1 parent 6826609 commit a4d4d3c

File tree

2 files changed

+46
-5
lines changed

2 files changed

+46
-5
lines changed

doc/source/basics.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,7 @@ so passing in a substring will work - as long as it is unambiguous :
10741074
However, the following will **not work** because it matches multiple option names, e.g.``print.max_colwidth``, ``print.max_rows``, ``print.max_columns``:
10751075

10761076
.. ipython:: python
1077+
:okexcept:
10771078
10781079
get_option("print.max_")
10791080

doc/source/v0.10.0.txt

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,45 @@ Convenience methods ``ffill`` and ``bfill`` have been added:
150150
New features
151151
~~~~~~~~~~~~
152152

153-
- Enable ``Series.str.strip/lstrip/rstrip`` methods to take an argument
154-
(GH2411_)
155-
- Implement ``value_vars`` in ``melt`` and add ``melt`` to pandas namespace
156-
(GH2412_)
157-
- ``SparseSeries`` now has a ``density`` property (#2384)
153+
Wide DataFrame Printing
154+
~~~~~~~~~~~~~~~~~~~~~~~
155+
156+
Instead of printing the summary information, pandas now splits the string
157+
representation across multiple rows by default:
158+
159+
.. ipython:: python
160+
161+
wide_frame = DataFrame(randn(5, 16))
162+
163+
wide_frame
164+
165+
The old behavior of printing out summary information can be achieved via the
166+
'expand_frame_repr' print option:
167+
168+
.. ipython:: python
169+
170+
pd.set_option('expand_frame_repr', False)
171+
172+
wide_frame
173+
174+
.. ipython:: python
175+
:suppress:
176+
177+
pd.reset_option('expand_frame_repr')
178+
179+
The width of each line can be changed via 'line_width' (80 by default):
180+
181+
.. ipython:: python
182+
183+
pd.set_option('line_width', 40)
184+
185+
wide_frame
186+
187+
.. ipython:: python
188+
:suppress:
189+
190+
pd.reset_option('line_width')
191+
158192

159193
Updated PyTables Support
160194
~~~~~~~~~~~~~~~~~~~~~~~~
@@ -235,6 +269,11 @@ Updated PyTables Support
235269

236270
- performance improvments on table writing
237271
- support for arbitrarily indexed dimensions
272+
- ``SparseSeries`` now has a ``density`` property (GH2384_)
273+
- enable ``Series.str.strip/lstrip/rstrip`` methods to take an input argument
274+
to strip arbitrary characters (GH2411_)
275+
- implement ``value_vars`` in ``melt`` to limit values to certain columns
276+
and add ``melt`` to pandas namespace (GH2412_)
238277

239278
**Bug Fixes**
240279

@@ -289,3 +328,4 @@ on GitHub for a complete list.
289328
.. _GH2431: https://github.com/pydata/pandas/issues/2431
290329
.. _GH2412: https://github.com/pydata/pandas/issues/2412
291330
.. _GH2411: https://github.com/pydata/pandas/issues/2411
331+
.. _GH2384: https://github.com/pydata/pandas/issues/2384

0 commit comments

Comments
 (0)