You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/visualization.rst
+21-16
Original file line number
Diff line number
Diff line change
@@ -458,22 +458,27 @@ columns:
458
458
459
459
.. warning::
460
460
461
-
The default changed from ``'dict'`` to ``'axes'`` in version 0.18.0.
462
-
463
-
Plot functions return scalar or arrays of :class:`matplotlib Axes <matplotlib.axes.Axes>`.
464
-
In ``boxplot``, the return type can be controlled by the ``return_type``, keyword. The valid choices are ``{"axes", "dict", "both"}``. If the ``by`` argument is ``None``,
465
-
466
-
* ``'axes'`` returns a single matplotlib axes.
467
-
* ``'dict'`` returns a dict of matplotlib artists, similar to the matplotlib boxplot function.
468
-
* ``'both'`` returns a named tuple of axes and dicts.
469
-
470
-
When ``by`` is not None, you get back an ``OrderedDict`` of whatever ``return_type`` is.
471
-
Unless ``return_type`` is just ``None``, in which case you get back an array of axes.
472
-
473
-
Finally, when calling boxplot on a :class:`Groupby` object, an ``OrderedDict`` of ``return_type``
474
-
is returned, where the keys are the same as the Groupby object. The plot has a
475
-
facet for each key, with each facet containing a box for each column of the
476
-
DataFrame.
461
+
The default changed from ``'dict'`` to ``'axes'`` in version 0.19.0.
462
+
463
+
In ``boxplot``, the return type can be controlled by the ``return_type``, keyword. The valid choices are ``{"axes", "dict", "both", None}``.
464
+
Faceting, created by ``DataFrame.boxplot`` with the ``by``
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.18.0.txt
-1
Original file line number
Diff line number
Diff line change
@@ -1168,7 +1168,6 @@ Removal of prior version deprecations/changes
1168
1168
- Removal of ``rolling_corr_pairwise`` in favor of ``.rolling().corr(pairwise=True)`` (:issue:`4950`)
1169
1169
- Removal of ``expanding_corr_pairwise`` in favor of ``.expanding().corr(pairwise=True)`` (:issue:`4950`)
1170
1170
- Removal of ``DataMatrix`` module. This was not imported into the pandas namespace in any event (:issue:`12111`)
1171
-
- Changed the default value for the ``return_type`` parameter for ``DataFrame.plot.box`` and ``DataFrame.boxplot`` from ``None`` to ``"axes"``. These methods will now return a matplotlib axes by default instead of a dictionary of artists. See :ref:`here <visualization.box.return>` (:issue:`6581`).
1172
1171
- Removal of ``cols`` keyword in favor of ``subset`` in ``DataFrame.duplicated()`` and ``DataFrame.drop_duplicates()`` (:issue:`6680`)
1173
1172
- Removal of the ``read_frame`` and ``frame_query`` (both aliases for ``pd.read_sql``)
1174
1173
and ``write_frame`` (alias of ``to_sql``) functions in the ``pd.io.sql`` namespace,
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.19.0.txt
+2-1
Original file line number
Diff line number
Diff line change
@@ -494,6 +494,7 @@ API changes
494
494
- ``__setitem__`` will no longer apply a callable rhs as a function instead of storing it. Call ``where`` directly to get the previous behavior. (:issue:`13299`)
495
495
- Passing ``Period`` with multiple frequencies to normal ``Index`` now returns ``Index`` with ``object`` dtype (:issue:`13664`)
496
496
- ``PeriodIndex.fillna`` with ``Period`` has different freq now coerces to ``object`` dtype (:issue:`13664`)
497
+
- Faceted boxplots from ``DataFrame.boxplot(by=col)`` now return a ``Series`` when ``return_type`` is not None. Previously these returned an ``OrderedDict``. Note that when ``return_type=None``, the default, these still return a 2-D NumPy array. (:issue:`12216`, :issue:`7096`)
497
498
- More informative exceptions are passed through the csv parser. The exception type would now be the original exception type instead of ``CParserError``. (:issue:`13652`)
498
499
- ``astype()`` will now accept a dict of column name to data types mapping as the ``dtype`` argument. (:issue:`12086`)
499
500
- The ``pd.read_json`` and ``DataFrame.to_json`` has gained support for reading and writing json lines with ``lines`` option see :ref:`Line delimited json <io.jsonl>` (:issue:`9180`)
@@ -1282,9 +1283,9 @@ Removal of prior version deprecations/changes
1282
1283
1283
1284
Now legacy time rules raises ``ValueError``. For the list of currently supported offsets, see :ref:`here <timeseries.offset_aliases>`
1284
1285
1286
+
- The default value for the ``return_type`` parameter for ``DataFrame.plot.box`` and ``DataFrame.boxplot`` changed from ``None`` to ``"axes"``. These methods will now return a matplotlib axes by default instead of a dictionary of artists. See :ref:`here <visualization.box.return>` (:issue:`6581`).
1285
1287
- The ``tquery`` and ``uquery`` functions in the ``pandas.io.sql`` module are removed (:issue:`5950`).
0 commit comments