Styler.where(cond, value, other=None, subset=None, **kwargs) [source]
Apply a function elementwise, updating the HTML representation with a style which is selected in accordance with the return value of a function.
New in version 0.21.0.
| Parameters: |
cond : callable
value : str applied when other : str applied when subset : IndexSlice a valid indexer to limit kwargs : dict pass along to |
|---|---|
| Returns: |
|
See also
© 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.where.html