Skip to content

Updated docstring for DataFrame.plot.bar graph clearify the use of color list #38387

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
Changes from all commits
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
4 changes: 3 additions & 1 deletion pandas/plotting/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,9 @@ def hist_frame(
- A sequence of color strings referred to by name, RGB or RGBA
code, which will be used for each column recursively. For
instance ['green','yellow'] each column's %(kind)s will be filled in
green or yellow, alternatively.
green or yellow, alternatively. If there is only a single column to
be plotted, then only the first color from the color list will be
used.

- A dict of the form {column name : color}, so that each column will be
colored accordingly. For example, if your columns are called `a` and
Expand Down