toHtml

fun <T> DataFrame<T>.toHtml(configuration: DisplayConfiguration = DisplayConfiguration.DEFAULT, cellRenderer: CellRenderer = DefaultCellRenderer, getFooter: (DataFrame<T>) -> String? = { "DataFrame [${it.size}]" }): DataFrameHtmlData

Returns a DataFrameHtmlData without additional definitions. Can be rendered in Jupyter kernel (Kotlin Notebook) environments or other environments that already have CSS- and script definitions for DataFrame.

To change the formatting of certain cells or columns in the dataframe, use DataFrame.format.

Use toStandaloneHtml if you need the DataFrameHtmlData to include CSS- and script definitions.

By default, cell content is formatted as text Use RenderedContent.media or IMG, IFRAME if you need custom HTML inside a cell.

Parameters

configuration
cellRenderer

Mostly for internal usage, use DefaultCellRenderer if unsure.

getFooter

Allows you to specify how to render the footer text beneath the dataframe. Default: "DataFrame [rows x cols]"

See also