Table
Display a pandas dataframe to the user
Examples
Basic Example
The following example demonstrate some of the available functionality for display_pandas
import pandas as pd
from abstra.forms import display_pandas
df = pd.DataFrame.from_dict(
{
"A": [1, 2, 3, 4],
"B": [5, 6, 7, 8],
"C": [9, 10, 11, 12],
}
)
display_pandas(df)
Parameters
Name | Description | Type |
---|---|---|
df | The dataframe to display to the user | "DataFrame" |
display_index | Whether to show a index column. Defaults to False. | bool |
label | The label to display to the user | str |
page_size | The number of rows to display per page. Defaults to 10. | number |
full_width | Whether the input should use full screen width. Defaults to True. | bool |
actions | Actions that can be triggered by table rows | list |
end_program | Whether the program should end after the widget is shown. Defaults to False. | bool |
button_text | What text to display on the button when the widget is not part of a Page. Defaults to 'Next'. | str |