Styler.bar()

pandas.formats.style.Styler.bar

Styler.bar(subset=None, axis=0, color='#d65f5f', width=100) [source]

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 to

axis: int

color: str

width: float

A number between 0 or 100. The largest value will cover width percent of the cell’s width

Returns:

self : Styler

© 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.19.2/generated/pandas.formats.style.Styler.bar.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部