Skip to content

Commit a8d1436

Browse files
ankushduacodesluckyvs1
authored andcommitted
Updated docstring for DataFrame.plot.bar graph clearify the use of color list (pandas-dev#38387)
* Updated docstring for DataFrame.plot.bar graph clearify the use of color list * removing a redundant space char
1 parent 5af0b4a commit a8d1436

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/plotting/_core.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,9 @@ def hist_frame(
422422
- A sequence of color strings referred to by name, RGB or RGBA
423423
code, which will be used for each column recursively. For
424424
instance ['green','yellow'] each column's %(kind)s will be filled in
425-
green or yellow, alternatively.
425+
green or yellow, alternatively. If there is only a single column to
426+
be plotted, then only the first color from the color list will be
427+
used.
426428
427429
- A dict of the form {column name : color}, so that each column will be
428430
colored accordingly. For example, if your columns are called `a` and

0 commit comments

Comments
 (0)