@Substitution(header='<STR_LIT>',<EOL>col_space_type='<STR_LIT>',<EOL>col_space='<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>')<EOL><INDENT>@Substitution(shared_params=fmt.common_docstring,<EOL>returns=fmt.return_docstring)<EOL>def to_html(self, buf=None, columns=None, col_space=None, header=True,<EOL>index=True, na_rep='<STR_LIT>', formatters=None, float_format=None,<EOL>sparsify=None, index_names=True, justify=None, max_rows=None,<EOL>max_cols=None, show_dimensions=False, decimal='<STR_LIT:.>',<EOL>bold_rows=True, classes=None, escape=True, notebook=False,<EOL>border=None, table_id=None, render_links=False):<DEDENT>
if (justify is not None and<EOL>justify not in fmt._VALID_JUSTIFY_PARAMETERS):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>formatter = fmt.DataFrameFormatter(self, buf=buf, columns=columns,<EOL>col_space=col_space, na_rep=na_rep,<EOL>formatters=formatters,<EOL>float_format=float_format,<EOL>sparsify=sparsify, justify=justify,<EOL>index_names=index_names,<EOL>header=header, index=index,<EOL>bold_rows=bold_rows, escape=escape,<EOL>max_rows=max_rows,<EOL>max_cols=max_cols,<EOL>show_dimensions=show_dimensions,<EOL>decimal=decimal, table_id=table_id,<EOL>render_links=render_links)<EOL>formatter.to_html(classes=classes, notebook=notebook, border=border)<EOL>if buf is None:<EOL><INDENT>return formatter.buf.getvalue()<EOL><DEDENT>
Render a DataFrame as an HTML table.
%(shared_params)s
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``.

    .. versionadded:: 0.19.0

table_id : str, optional
    A css id is included in the opening `<table>` tag if specified.

    .. versionadded:: 0.23.0

render_links : bool, default False
    Convert URLs to HTML links.

    .. versionadded:: 0.24.0
%(returns)s
See Also
--------
to_string : Convert DataFrame to a string.