@@ -190,7 +190,7 @@ API changes
190
190
- Added ``nunique`` and ``value_counts`` functions to ``Index`` for counting unique elements. (:issue:`6734`)
191
191
- ``stack`` and ``unstack`` now raise a ``ValueError`` when the ``level`` keyword refers
192
192
to a non-unique item in the ``Index`` (previously raised a ``KeyError``).
193
- - drop unused order argument from ``Series.sort``; args now in the same orders as ``Series.order``;
193
+ - drop unused order argument from ``Series.sort``; args now are in the same order as ``Series.order``;
194
194
add ``na_position`` arg to conform to ``Series.order`` (:issue:`6847`)
195
195
- default sorting algorithm for ``Series.order`` is now ``quicksort``, to conform with ``Series.sort``
196
196
(and numpy defaults)
@@ -212,11 +212,6 @@ API changes
212
212
# this now raises for arith ops like ``+``, ``*``, etc.
213
213
NotImplementedError: operator '*' not implemented for bool dtypes
214
214
215
- - :meth:`DataFrame.boxplot` has a new keyword argument, `return_type`. It accepts ``'dict'``,
216
- ``'axes'``, or ``'both'``, in which case a namedtuple with the matplotlib
217
- axes and a dict of matplotlib Lines is returned.
218
-
219
-
220
215
.. _whatsnew_0140.display:
221
216
222
217
Display Changes
@@ -225,37 +220,37 @@ Display Changes
225
220
- The default way of printing large DataFrames has changed. DataFrames
226
221
exceeding ``max_rows`` and/or ``max_columns`` are now displayed in a
227
222
centrally truncated view, consistent with the printing of a
228
- :class:`pandas.Series` (:issue:`5603`).
223
+ :class:`pandas.Series` (:issue:`5603`).
229
224
230
225
In previous versions, a DataFrame was truncated once the dimension
231
226
constraints were reached and an ellipse (...) signaled that part of
232
227
the data was cut off.
233
228
234
229
.. image:: _static/trunc_before.png
235
- :alt: The previous look of truncate.
230
+ :alt: The previous look of truncate.
236
231
237
232
In the current version, large DataFrames are centrally truncated,
238
233
showing a preview of head and tail in both dimensions.
239
234
240
235
.. image:: _static/trunc_after.png
241
- :alt: The new look.
236
+ :alt: The new look.
242
237
243
238
- allow option ``'truncate'`` for ``display.show_dimensions`` to only show the dimensions if the
244
239
frame is truncated (:issue:`6547`).
245
240
246
- The default for ``display.show_dimensions`` will now be ** truncate**! This is consistent with
241
+ The default for ``display.show_dimensions`` will now be `` truncate``. This is consistent with
247
242
how Series display length.
248
243
249
244
.. ipython:: python
250
245
251
246
dfd = pd.DataFrame(np.arange(25).reshape(-1,5), index=[0,1,2,3,4], columns=[0,1,2,3,4])
252
247
253
- # show dimensions only if truncated
248
+ # show dimensions since this is truncated
254
249
with pd.option_context('display.max_rows', 2, 'display.max_columns', 2,
255
250
'display.show_dimensions', 'truncate'):
256
251
print(dfd)
257
252
258
- # show dimensions only if truncated
253
+ # will not show dimensions since it is not truncated
259
254
with pd.option_context('display.max_rows', 10, 'display.max_columns', 40,
260
255
'display.show_dimensions', 'truncate'):
261
256
print(dfd)
@@ -484,7 +479,11 @@ Plotting
484
479
positional argument ``frame`` instead of ``data``. A ``FutureWarning`` is
485
480
raised if the old ``data`` argument is used by name. (:issue:`6956`)
486
481
487
- - ``boxplot`` now supports ``layout`` keyword (:issue:`6769`)
482
+ - :meth:`DataFrame.boxplot` now supports ``layout`` keyword (:issue:`6769`)
483
+ - :meth:`DataFrame.boxplot` has a new keyword argument, `return_type`. It accepts ``'dict'``,
484
+ ``'axes'``, or ``'both'``, in which case a namedtuple with the matplotlib
485
+ axes and a dict of matplotlib Lines is returned.
486
+
488
487
489
488
.. _whatsnew_0140.prior_deprecations:
490
489
0 commit comments