Basic usage
Constructor
Default data. Accepts pandas DataFrame, numpy array, list of lists, dict, or CSV filepath
Column headers. If None, headers are inferred from data
Initial number of rows to display
Initial number of columns. Defaults based on data
Column datatypes. Can be:
- Single string:
"str","number","bool","date","markdown" - List per column:
["str", "number", "bool"] "auto"- Automatically infer types
Format passed to function:
"pandas"- pandas DataFrame"numpy"- numpy array"array"- Python list of lists"polars"- Polars DataFrame
Whether users can edit the dataframe
Maximum height with scrollbar if needed
Whether text in cells should wrap
Enable line breaks in markdown cells
Events
- change - Triggered when data changes
- input - Triggered on input
- select - Triggered when cell is selected
- edit - Triggered when cell is edited