Skip to content

Commit 051d313

Browse files
committed
docs
1 parent babe2cc commit 051d313

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pandas/io/formats/style.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2628,11 +2628,12 @@ def bar(
26282628
Apply to each column (``axis=0`` or ``'index'``), to each row
26292629
(``axis=1`` or ``'columns'``), or to the entire DataFrame at once
26302630
with ``axis=None``.
2631-
color : str or 2-tuple/list
2631+
color : str, 2-tuple/list, matplotlib Colormap
26322632
If a str is passed, the color is the same for both
26332633
negative and positive numbers. If 2-tuple/list is used, the
26342634
first element is the color_negative and the second is the
2635-
color_positive (eg: ['#d65f5f', '#5fba7d']).
2635+
color_positive (eg: ['#d65f5f', '#5fba7d']). Alternatively, assigns
2636+
colors from a Colormap based on the datavalues.
26362637
width : float, default 100
26372638
The percentage of the cell, measured from the left, in which to draw the
26382639
bars, in [0, 100].
@@ -2675,6 +2676,12 @@ def bar(
26752676
Returns
26762677
-------
26772678
self : Styler
2679+
2680+
Notes
2681+
-----
2682+
This section of the user guide:
2683+
`Table Visualization <../../user_guide/style.ipynb>`_ gives
2684+
a number of examples for different settings and color coordination.
26782685
"""
26792686
if not (0 <= width <= 100):
26802687
raise ValueError(f"`width` must be a value in [0, 100], got {width}")

0 commit comments

Comments
 (0)