def to_html(self, buf: Optional[IO[str]]=None, columns: Optional[Sequence[Name]]=None, col_space: Optional[Union[(str, int, Dict[(Name, Union[(str, int)])])]]=None, header: bool=True, index: bool=True, na_rep: str='NaN', formatters: Optional[Union[(List[Callable[([Any], str)]], Dict[(Name, Callable[([Any], str)])])]]=None, float_format: Optional[Callable[([float], str)]]=None, sparsify: Optional[bool]=None, index_names: bool=True, justify: Optional[str]=None, max_rows: Optional[int]=None, max_cols: Optional[int]=None, show_dimensions: bool=False, decimal: str='.', bold_rows: bool=True, classes: Optional[Union[(str, list, tuple)]]=None, escape: bool=True, notebook: bool=False, border: Optional[int]=None, table_id: Optional[str]=None, render_links: bool=False) -> Optional[str]:
    "\n        Render a DataFrame as an HTML table.\n\n        .. note:: This method should only be used if the resulting pandas object is expected\n                  to be small, as all the data is loaded into the driver's memory. If the input\n                  is large, set max_rows parameter.\n\n        Parameters\n        ----------\n        buf : StringIO-like, optional\n            Buffer to write to.\n        columns : sequence, optional, default None\n            The subset of columns to write. Writes all columns by default.\n        col_space : int, optional\n            The minimum width of each column.\n        header : bool, optional\n            Write out the column names. If a list of strings is given, it\n            is assumed to be aliases for the column names\n        index : bool, optional, default True\n            Whether to print index (row) labels.\n        na_rep : str, optional, default 'NaN'\n            String representation of NAN to use.\n        formatters : list or dict of one-param. functions, optional\n            Formatter functions to apply to columns' elements by position or\n            name.\n            The result of each function must be a unicode string.\n            List must be of length equal to the number of columns.\n        float_format : one-parameter function, optional, default None\n            Formatter function to apply to columns' elements if they are\n            floats. The result of this function must be a unicode string.\n        sparsify : bool, optional, default True\n            Set to False for a DataFrame with a hierarchical index to print\n            every multiindex key at each row.\n        index_names : bool, optional, default True\n            Prints the names of the indexes.\n        justify : str, default None\n            How to justify the column labels. If None uses the option from\n            the print configuration (controlled by set_option), 'right' out\n            of the box. Valid values are\n\n            * left\n            * right\n            * center\n            * justify\n            * justify-all\n            * start\n            * end\n            * inherit\n            * match-parent\n            * initial\n            * unset.\n        max_rows : int, optional\n            Maximum number of rows to display in the console.\n        max_cols : int, optional\n            Maximum number of columns to display in the console.\n        show_dimensions : bool, default False\n            Display DataFrame dimensions (number of rows by number of columns).\n        decimal : str, default '.'\n            Character recognized as decimal separator, e.g. ',' in Europe.\n        bold_rows : bool, default True\n            Make the row labels bold in the output.\n        classes : str or list or tuple, default None\n            CSS class(es) to apply to the resulting html table.\n        escape : bool, default True\n            Convert the characters <, >, and & to HTML-safe sequences.\n        notebook : {True, False}, default False\n            Whether the generated HTML is for IPython Notebook.\n        border : int\n            A ``border=border`` attribute is included in the opening\n            `<table>` tag. Default ``pd.options.html.border``.\n        table_id : str, optional\n            A css id is included in the opening `<table>` tag if specified.\n        render_links : bool, default False\n            Convert URLs to HTML links (only works with pandas 0.24+).\n\n        Returns\n        -------\n        str (or unicode, depending on data and options)\n            String representation of the dataframe.\n\n        See Also\n        --------\n        to_string : Convert DataFrame to a string.\n        "
    args = locals()
    if (max_rows is not None):
        psdf = self.head(max_rows)
    else:
        psdf = self
    return validate_arguments_and_invoke_function(psdf._to_internal_pandas(), self.to_html, pd.DataFrame.to_html, args)
Render a DataFrame as an HTML table.

.. note:: This method should only be used if the resulting pandas object is expected
          to be small, as all the data is loaded into the driver's memory. If the input
          is large, set max_rows parameter.

Parameters
----------
buf : StringIO-like, optional
    Buffer to write to.
columns : sequence, optional, default None
    The subset of columns to write. Writes all columns by default.
col_space : int, optional
    The minimum width of each column.
header : bool, optional
    Write out the column names. If a list of strings is given, it
    is assumed to be aliases for the column names
index : bool, optional, default True
    Whether to print index (row) labels.
na_rep : str, optional, default 'NaN'
    String representation of NAN to use.
formatters : list or dict of one-param. functions, optional
    Formatter functions to apply to columns' elements by position or
    name.
    The result of each function must be a unicode string.
    List must be of length equal to the number of columns.
float_format : one-parameter function, optional, default None
    Formatter function to apply to columns' elements if they are
    floats. The result of this function must be a unicode string.
sparsify : bool, optional, default True
    Set to False for a DataFrame with a hierarchical index to print
    every multiindex key at each row.
index_names : bool, optional, default True
    Prints the names of the indexes.
justify : str, default None
    How to justify the column labels. If None uses the option from
    the print configuration (controlled by set_option), 'right' out
    of the box. Valid values are

    * left
    * right
    * center
    * justify
    * justify-all
    * start
    * end
    * inherit
    * match-parent
    * initial
    * unset.
max_rows : int, optional
    Maximum number of rows to display in the console.
max_cols : int, optional
    Maximum number of columns to display in the console.
show_dimensions : bool, default False
    Display DataFrame dimensions (number of rows by number of columns).
decimal : str, default '.'
    Character recognized as decimal separator, e.g. ',' in Europe.
bold_rows : bool, default True
    Make the row labels bold in the output.
classes : str or list or tuple, default None
    CSS class(es) to apply to the resulting html table.
escape : bool, default True
    Convert the characters <, >, and & to HTML-safe sequences.
notebook : {True, False}, default False
    Whether the generated HTML is for IPython Notebook.
border : int
    A ``border=border`` attribute is included in the opening
    `<table>` tag. Default ``pd.options.html.border``.
table_id : str, optional
    A css id is included in the opening `<table>` tag if specified.
render_links : bool, default False
    Convert URLs to HTML links (only works with pandas 0.24+).

Returns
-------
str (or unicode, depending on data and options)
    String representation of the dataframe.

See Also
--------
to_string : Convert DataFrame to a string.
def to_html(self, buf: Optional[IO[str]]=None, columns: Optional[Sequence[Name]]=None, col_space: Optional[Union[(str, int, Dict[(Name, Union[(str, int)])])]]=None, header: bool=True, index: bool=True, na_rep: str='NaN', formatters: Optional[Union[(List[Callable[([Any], str)]], Dict[(Name, Callable[([Any], str)])])]]=None, float_format: Optional[Callable[([float], str)]]=None, sparsify: Optional[bool]=None, index_names: bool=True, justify: Optional[str]=None, max_rows: Optional[int]=None, max_cols: Optional[int]=None, show_dimensions: bool=False, decimal: str='.', bold_rows: bool=True, classes: Optional[Union[(str, list, tuple)]]=None, escape: bool=True, notebook: bool=False, border: Optional[int]=None, table_id: Optional[str]=None, render_links: bool=False) -> Optional[str]:
    "\n        Render a DataFrame as an HTML table.\n\n        .. note:: This method should only be used if the resulting pandas object is expected\n                  to be small, as all the data is loaded into the driver's memory. If the input\n                  is large, set max_rows parameter.\n\n        Parameters\n        ----------\n        buf : StringIO-like, optional\n            Buffer to write to.\n        columns : sequence, optional, default None\n            The subset of columns to write. Writes all columns by default.\n        col_space : int, optional\n            The minimum width of each column.\n        header : bool, optional\n            Write out the column names. If a list of strings is given, it\n            is assumed to be aliases for the column names\n        index : bool, optional, default True\n            Whether to print index (row) labels.\n        na_rep : str, optional, default 'NaN'\n            String representation of NAN to use.\n        formatters : list or dict of one-param. functions, optional\n            Formatter functions to apply to columns' elements by position or\n            name.\n            The result of each function must be a unicode string.\n            List must be of length equal to the number of columns.\n        float_format : one-parameter function, optional, default None\n            Formatter function to apply to columns' elements if they are\n            floats. The result of this function must be a unicode string.\n        sparsify : bool, optional, default True\n            Set to False for a DataFrame with a hierarchical index to print\n            every multiindex key at each row.\n        index_names : bool, optional, default True\n            Prints the names of the indexes.\n        justify : str, default None\n            How to justify the column labels. If None uses the option from\n            the print configuration (controlled by set_option), 'right' out\n            of the box. Valid values are\n\n            * left\n            * right\n            * center\n            * justify\n            * justify-all\n            * start\n            * end\n            * inherit\n            * match-parent\n            * initial\n            * unset.\n        max_rows : int, optional\n            Maximum number of rows to display in the console.\n        max_cols : int, optional\n            Maximum number of columns to display in the console.\n        show_dimensions : bool, default False\n            Display DataFrame dimensions (number of rows by number of columns).\n        decimal : str, default '.'\n            Character recognized as decimal separator, e.g. ',' in Europe.\n        bold_rows : bool, default True\n            Make the row labels bold in the output.\n        classes : str or list or tuple, default None\n            CSS class(es) to apply to the resulting html table.\n        escape : bool, default True\n            Convert the characters <, >, and & to HTML-safe sequences.\n        notebook : {True, False}, default False\n            Whether the generated HTML is for IPython Notebook.\n        border : int\n            A ``border=border`` attribute is included in the opening\n            `<table>` tag. Default ``pd.options.html.border``.\n        table_id : str, optional\n            A css id is included in the opening `<table>` tag if specified.\n        render_links : bool, default False\n            Convert URLs to HTML links (only works with pandas 0.24+).\n\n        Returns\n        -------\n        str (or unicode, depending on data and options)\n            String representation of the dataframe.\n\n        See Also\n        --------\n        to_string : Convert DataFrame to a string.\n        "
    args = locals()
    if (max_rows is not None):
        psdf = self.head(max_rows)
    else:
        psdf = self
    return validate_arguments_and_invoke_function(psdf._to_internal_pandas(), self.to_html, pd.DataFrame.to_html, args)