def to_html(self, classes=None, notebook=False, border=None):
from pandas.io.formats.html import HTMLFormatter, NotebookFormatter<EOL>Klass = NotebookFormatter if notebook else HTMLFormatter<EOL>html = Klass(self, classes=classes, border=border).render()<EOL>if hasattr(self.buf, '<STR_LIT>'):<EOL><INDENT>buffer_put_lines(self.buf, html)<EOL><DEDENT>elif isinstance(self.buf, str):<EOL><INDENT>with open(self.buf, '<STR_LIT:w>') as f:<EOL><INDENT>buffer_put_lines(f, html)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise TypeError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>
Render a DataFrame to a html table.

Parameters
----------
classes : str or list-like
    classes to include in the `class` attribute of the opening
    ``<table>`` tag, in addition to the default "dataframe".
notebook : {True, False}, optional, 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