A valid 2d input to DataFrame.loc[<subset>], or, in the case of a 1d input
or single key, to DataFrame.loc[:, <subset>] where the columns are
prioritised, to limit data to before applying the function.
colorstr, default ‘yellow’
Background color to use for highlighting.
axis{0 or ‘index’, 1 or ‘columns’, None}, default 0
If left or right given as sequence, axis along which to apply those
boundaries. See examples.
leftscalar or datetime-like, or sequence or array-like, default None
Left bound for defining the range.
rightscalar or datetime-like, or sequence or array-like, default None
Right bound for defining the range.
inclusive{‘both’, ‘neither’, ‘left’, ‘right’}
Identify whether bounds are closed or open.
propsstr, default None
CSS properties to use for highlighting. If props is given, color
is not used.
Highlight values defined by a quantile with a style.
Notes
If left is None only the right bound is applied.
If right is None only the left bound is applied. If both are None
all values are highlighted.
axis is only needed if left or right are provided as a sequence or
an array-like object for aligning the shapes. If left and right are
both scalars then all axis inputs will give the same result.
This function only works with compatible dtypes. For example a datetime-like
region can only use equivalent datetime-like left and right arguments.
Use subset to control regions which have multiple dtypes.