Content
DataFrame
A component to display Pandas DataFrames.
Fields
Name | Type | Description | Options |
---|---|---|---|
Data | Text | Must be a state reference to a Pandas dataframe or PyArrow table. Alternatively, a URL for an Arrow IPC file. | - |
Show index | Boolean | Shows the dataframe’s index. If an Arrow table is used, shows the zero-based integer index. |
|
Enable search | Boolean | - |
|
Enable adding a record | Boolean | - |
|
Enable updating a record | Boolean | - |
|
Enable download | Boolean | Allows the user to download the data as CSV. |
|
Actions | Key-Value | Define rows actions | - |
Use Markdown | Boolean | If active, the output will be sanitized; unsafe elements will be removed. |
|
Display row count | Number | Specifies how many rows to show simultaneously. | - |
Wrap text | Boolean | Not wrapping text allows for an uniform grid, but may be inconvenient if your data contains longer text fields. |
|
Primary text | Color | - | - |
Secondary text | Color | - | - |
Accent | Color | - | - |
Separator | Color | - | - |
Background | Color | - | - |
Font style | Text | - |
|
Custom CSS classes | Text | CSS classes, separated by spaces. You can define classes in custom stylesheets. | - |
Events
Low code usage
This component can be declared directly in Python, using backend-driven UI.
A function, in this example handle_event
, should be implemented in your code to handle events.