def set_table_styles(self, table_styles):
    "\n        Set the table styles on a Styler.\n\n        These are placed in a ``<style>`` tag before the generated HTML table.\n\n        Parameters\n        ----------\n        table_styles : list\n            Each individual table_style should be a dictionary with\n            ``selector`` and ``props`` keys. ``selector`` should be a CSS\n            selector that the style will be applied to (automatically\n            prefixed by the table's UUID) and ``props`` should be a list of\n            tuples with ``(attribute, value)``.\n\n        Returns\n        -------\n        self : Styler\n\n        Examples\n        --------\n        >>> df = pd.DataFrame(np.random.randn(10, 4))\n        >>> df.style.set_table_styles(\n        ...     [{'selector': 'tr:hover',\n        ...       'props': [('background-color', 'yellow')]}]\n        ... )\n        "
    self.table_styles = table_styles
    return self
Set the table styles on a Styler.

These are placed in a ``<style>`` tag before the generated HTML table.

Parameters
----------
table_styles : list
    Each individual table_style should be a dictionary with
    ``selector`` and ``props`` keys. ``selector`` should be a CSS
    selector that the style will be applied to (automatically
    prefixed by the table's UUID) and ``props`` should be a list of
    tuples with ``(attribute, value)``.

Returns
-------
self : Styler

Examples
--------
>>> df = pd.DataFrame(np.random.randn(10, 4))
>>> df.style.set_table_styles(
...     [{'selector': 'tr:hover',
...       'props': [('background-color', 'yellow')]}]
... )
def set_table_styles(self, table_styles):
    "\n        Set the table styles on a Styler.\n\n        These are placed in a ``<style>`` tag before the generated HTML table.\n\n        Parameters\n        ----------\n        table_styles : list\n            Each individual table_style should be a dictionary with\n            ``selector`` and ``props`` keys. ``selector`` should be a CSS\n            selector that the style will be applied to (automatically\n            prefixed by the table's UUID) and ``props`` should be a list of\n            tuples with ``(attribute, value)``.\n\n        Returns\n        -------\n        self : Styler\n\n        Examples\n        --------\n        >>> df = pd.DataFrame(np.random.randn(10, 4))\n        >>> df.style.set_table_styles(\n        ...     [{'selector': 'tr:hover',\n        ...       'props': [('background-color', 'yellow')]}]\n        ... )\n        "
    self.table_styles = table_styles
    return self