Skip to main content
The Dataframe class is designed to send a dataframe to the chatbot user interface. Both pandas and polars DataFrames are supported — neither library is a hard dependency, so you can use whichever you have installed.

Attributes

str
The name of the dataframe to be displayed in the UI.
ElementDisplay
Determines how the dataframe element should be displayed in the UI. Choices are “side”, “inline”, or “page”.
Union[pd.DataFrame, pl.DataFrame]
A pandas or polars DataFrame instance.
Polars support added in version 2.11.0.

Example

Polars