On this page
pandas.formats.style.Styler.bar
Styler.bar(subset=None, axis=0, color='#d65f5f', width=100)
-
Color the background
color
proptional to the values in each column. Excludes non-numeric data by default.New in version 0.17.1.
Parameters: subset: IndexSlice, default None
a valid slice for
data
to limit the style application toaxis: int
color: str
width: float
A number between 0 or 100. The largest value will cover
width
percent of the cell’s widthReturns: self : Styler
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.18.1/generated/pandas.formats.style.Styler.bar.html