@@ -190,7 +190,7 @@ API changes
190190- Added ``nunique`` and ``value_counts`` functions to ``Index`` for counting unique elements. (:issue:`6734`)
191191- ``stack`` and ``unstack`` now raise a ``ValueError`` when the ``level`` keyword refers
192192 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``;
194194 add ``na_position`` arg to conform to ``Series.order`` (:issue:`6847`)
195195- default sorting algorithm for ``Series.order`` is now ``quicksort``, to conform with ``Series.sort``
196196 (and numpy defaults)
@@ -212,11 +212,6 @@ API changes
212212 # this now raises for arith ops like ``+``, ``*``, etc.
213213 NotImplementedError: operator '*' not implemented for bool dtypes
214214
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-
220215.. _whatsnew_0140.display:
221216
222217Display Changes
@@ -225,37 +220,37 @@ Display Changes
225220- The default way of printing large DataFrames has changed. DataFrames
226221 exceeding ``max_rows`` and/or ``max_columns`` are now displayed in a
227222 centrally truncated view, consistent with the printing of a
228- :class:`pandas.Series` (:issue:`5603`).
223+ :class:`pandas.Series` (:issue:`5603`).
229224
230225 In previous versions, a DataFrame was truncated once the dimension
231226 constraints were reached and an ellipse (...) signaled that part of
232227 the data was cut off.
233228
234229 .. image:: _static/trunc_before.png
235- :alt: The previous look of truncate.
230+ :alt: The previous look of truncate.
236231
237232 In the current version, large DataFrames are centrally truncated,
238233 showing a preview of head and tail in both dimensions.
239234
240235 .. image:: _static/trunc_after.png
241- :alt: The new look.
236+ :alt: The new look.
242237
243238- allow option ``'truncate'`` for ``display.show_dimensions`` to only show the dimensions if the
244239 frame is truncated (:issue:`6547`).
245240
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
247242 how Series display length.
248243
249244 .. ipython:: python
250245
251246 dfd = pd.DataFrame(np.arange(25).reshape(-1,5), index=[0,1,2,3,4], columns=[0,1,2,3,4])
252247
253- # show dimensions only if truncated
248+ # show dimensions since this is truncated
254249 with pd.option_context('display.max_rows', 2, 'display.max_columns', 2,
255250 'display.show_dimensions', 'truncate'):
256251 print(dfd)
257252
258- # show dimensions only if truncated
253+ # will not show dimensions since it is not truncated
259254 with pd.option_context('display.max_rows', 10, 'display.max_columns', 40,
260255 'display.show_dimensions', 'truncate'):
261256 print(dfd)
@@ -484,7 +479,11 @@ Plotting
484479 positional argument ``frame`` instead of ``data``. A ``FutureWarning`` is
485480 raised if the old ``data`` argument is used by name. (:issue:`6956`)
486481
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+
488487
489488.. _whatsnew_0140.prior_deprecations:
490489
0 commit comments