Render a DataFrame as an HTML table.
Buffer to write to. If None, the output is returned as a string.
The subset of columns to write. Writes all columns by default.
The minimum width of each column in CSS length units. An int is assumed to be px units.
New in version 0.25.0: Ability to use str.
Whether to print column labels, default True.
Whether to print index (row) labels.
String representation of NAN to use.
Formatter functions to apply to columns’ elements by position or
The result of each function must be a unicode string.
List/tuple must be of length equal to the number of columns.
Formatter function to apply to columns’ elements if they are
floats. The result of this function must be a unicode string.
Set to False for a DataFrame with a hierarchical index to print
every multiindex key at each row.
Prints the names of the indexes.
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
Maximum number of rows to display in the console.
The number of rows to display in the console in a truncated repr
(when number of rows is above max_rows).
Maximum number of columns to display in the console.
Display DataFrame dimensions (number of rows by number of columns).
Character recognized as decimal separator, e.g. ‘,’ in Europe.
Make the row labels bold in the output.
CSS class(es) to apply to the resulting html table.
Convert the characters <, >, and & to HTML-safe sequences.
Whether the generated HTML is for IPython Notebook.
A border=border attribute is included in the opening
<table> tag. Default pd.options.display.html.border.
Set character encoding.
New in version 1.0.
A css id is included in the opening <table> tag if specified.
New in version 0.23.0.
Convert URLs to HTML links.
New in version 0.24.0.
If buf is None, returns the result as a string. Otherwise returns
Convert DataFrame to a string.