Styler.bar(subset=None, axis=0, color='#d65f5f', width=100, align='left') [source]
Color the background color proptional to the values in each column. Excludes non-numeric data by default.
| Parameters: |
subset: IndexSlice, default None a valid slice for
color: str or 2-tuple/list If a str is passed, the color is the same for both negative and positive numbers. If 2-tuple/list is used, the first element is the color_negative and the second is the color_positive (eg: [‘#d65f5f’, ‘#5fba7d’]) width: float A number between 0 or 100. The largest value will cover align : {‘left’, ‘zero’,’ mid’}, default ‘left’
|
|---|---|
| Returns: |
|
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.io.formats.style.Styler.bar.html