8000 DOC: Add user_guide examples and docstring example for df.plot.box and df.plot.hist by charlesdong1991 · Pull Request #42520 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

DOC: Add user_guide examples and docstring example for df.plot.box and df.plot.hist #42520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jul 28, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add version changed
  • Loading branch information
charlesdong1991 committed Jul 15, 2021
commit 09060c546af9dd3bce09568f80cdbb9f75b98107
6 changes: 5 additions & 1 deletion doc/source/user_guide/visualization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ The ``by`` keyword can be specified to plot grouped histograms:

In addition, the ``by`` keyword can also be specified in :meth:`DataFrame.plot.hist`.

.. versionchanged:: 1.4.0

.. ipython:: python

data = pd.DataFrame(
Expand Down Expand Up @@ -474,7 +476,9 @@ columns:

plt.close("all")

You could also create groupings with :meth:`DataFrame.plot.box`, for instance,
You could also create groupings with :meth:`DataFrame.plot.box`, for instance:

.. versionchanged:: 1.4.0

.. ipython:: python
:suppress:
Expand Down
2 changes: 2 additions & 0 deletions pandas/plotting/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,8 @@ def box(self, by=None, **kwargs):
You can also generate groupings if you specify the `by` parameter (which
can take a column name, or a list or tuple of column names):

.. versionchanged:: 1.4.0

.. plot::
:context: close-figs

Expand Down
0