@@ -39,6 +39,59 @@ Highlights include:
3939 df.ix[0,'A'] = np.nan
4040 df
4141
42+ Output Formatting Enhancements
43+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44+
45+ - df.info() view now display dtype info per column (:issue:`5682`)
46+
47+ - df.info() now honors the option ``max_info_rows``, to disable null counts for large frames (:issue:`5974`)
48+
49+ .. ipython:: python
50+
51+ max_info_rows = pd.get_option('max_info_rows')
52+
53+ df = DataFrame(np.random.randn(10,2))
54+ df.iloc[3:6,0] = np.nan
55+
56+ # set to not display the null counts
57+ pd.set_option('max_info_rows',0)
58+ df.info()
59+
60+ # this is the default (same as in 0.13.0)
61+ pd.set_option('max_info_rows',max_info_rows)
62+ df.info()
63+
64+ - Add ``show_dimensions`` display option for the new DataFrame repr to control whether the dimensions print.
65+
66+ .. ipython:: python
67+
68+ df = DataFrame([[1, 2], [3, 4]])
69+ pd.set_option('show_dimensions', False)
70+ df
71+
72+ pd.set_option('show_dimensions', True)
73+
74+ - The ``ArrayFormatter`` for ``datetime`` and ``timedelta64`` now intelligently
75+ limit precision based on the values in the array (:issue:`3401`)
76+
77+ Previously output might look like:
78+
79+ .. code-block:: python
80+
81+ age today diff
82+ 0 2001-01-01 00:00:00 2013-04-19 00:00:00 4491 days, 00:00:00
83+ 1 2004-06-01 00:00:00 2013-04-19 00:00:00 3244 days, 00:00:00
84+
85+ Now the output looks like:
86+
87+ .. ipython:: python
88+
89+ df = DataFrame([ Timestamp('20010101'),
90+ Timestamp('20040601') ], columns=['age'])
91+ df['today'] = Timestamp('20130419')
92+ df['diff'] = df['today']-df['age']
93+ df
94+
4295API changes
4396~~~~~~~~~~~
4497
@@ -139,37 +192,6 @@ Enhancements
139192
140193 MultiIndex.from_product([shades, colors], names=['shade', 'color'])
141194
142- - The ``ArrayFormatter`` for ``datetime`` and ``timedelta64`` now intelligently
143- limit precision based on the values in the array (:issue:`3401`)
144-
145- Previously output might look like:
146-
147- .. code-block:: python
148-
149- age today diff
150- 0 2001-01-01 00:00:00 2013-04-19 00:00:00 4491 days, 00:00:00
151- 1 2004-06-01 00:00:00 2013-04-19 00:00:00 3244 days, 00:00:00
152-
153- Now the output looks like:
154-
155- .. ipython:: python
156-
157- df = DataFrame([ Timestamp('20010101'),
158- Timestamp('20040601') ], columns=['age'])
159- df['today'] = Timestamp('20130419')
160- df['diff'] = df['today']-df['age']
161- df
162-
163- - Add ``show_dimensions`` display option for the new DataFrame repr to control whether the dimensions print.
164-
165- .. ipython:: python
166-
167- df = DataFrame([[1, 2], [3, 4]])
168- pd.set_option('show_dimensions', False)
169- df
170-
171- pd.set_option('show_dimensions', True)
172-
173195- Panel :meth:`~pandas.Panel.apply` will work on non-ufuncs. See :ref:`the docs<basics.apply_panel>`.
174196
175197 .. ipython:: python
@@ -227,9 +249,6 @@ Enhancements
227249 result
228250 result.loc[:,:,'ItemA']
229251
230- - df.info() view now display dtype info per column (:issue:`5682`)
231- - df.info() now honors option max_info_rows, disable null counts for large frames (:issue:`5974`)
232-
233252Performance
234253~~~~~~~~~~~
235254
0 commit comments