def where(self, cond, value, other=None, subset=None, **kwargs):
    '\n        Apply a function elementwise, updating the HTML\n        representation with a style which is selected in\n        accordance with the return value of a function.\n\n        .. versionadded:: 0.21.0\n\n        Parameters\n        ----------\n        cond : callable\n            ``cond`` should take a scalar and return a boolean\n        value : str\n            applied when ``cond`` returns true\n        other : str\n            applied when ``cond`` returns false\n        subset : IndexSlice\n            a valid indexer to limit ``data`` to *before* applying the\n            function. Consider using a pandas.IndexSlice\n        kwargs : dict\n            pass along to ``cond``\n\n        Returns\n        -------\n        self : Styler\n\n        See Also\n        --------\n        Styler.applymap\n        '
    if (other is None):
        other = ''
    return self.applymap((lambda val: (value if cond(val) else other)), subset=subset, **kwargs)
Apply a function elementwise, updating the HTML
representation with a style which is selected in
accordance with the return value of a function.

.. versionadded:: 0.21.0

Parameters
----------
cond : callable
    ``cond`` should take a scalar and return a boolean
value : str
    applied when ``cond`` returns true
other : str
    applied when ``cond`` returns false
subset : IndexSlice
    a valid indexer to limit ``data`` to *before* applying the
    function. Consider using a pandas.IndexSlice
kwargs : dict
    pass along to ``cond``

Returns
-------
self : Styler

See Also
--------
Styler.applymap
def where(self, cond, value, other=None, subset=None, **kwargs):
    '\n        Apply a function elementwise, updating the HTML\n        representation with a style which is selected in\n        accordance with the return value of a function.\n\n        .. versionadded:: 0.21.0\n\n        Parameters\n        ----------\n        cond : callable\n            ``cond`` should take a scalar and return a boolean\n        value : str\n            applied when ``cond`` returns true\n        other : str\n            applied when ``cond`` returns false\n        subset : IndexSlice\n            a valid indexer to limit ``data`` to *before* applying the\n            function. Consider using a pandas.IndexSlice\n        kwargs : dict\n            pass along to ``cond``\n\n        Returns\n        -------\n        self : Styler\n\n        See Also\n        --------\n        Styler.applymap\n        '
    if (other is None):
        other = 
    return self.applymap((lambda val: (value if cond(val) else other)), subset=subset, **kwargs)