Below are the various attributes you can assign to the component. Utilizing them can allow for modifications to the pre-created object.
zero_true.DataFrame
Zero True Component
id (string): Unique id for a component
headers (list): List of column headers for the DataFrame
items (list): List of items to be displayed in the DataFrame
multi_sort (boolean): Enable or disable multi-sort on the DataFrame
search (string): Create a text_input component search = zt.text_input(id=‘search’) before to filter the DataFrame items
Example Usage
import zero_true as ztimport pandas as pd# Some sample data pulled from Wikipediatable_MN = pd.read_html('https://en.wikipedia.org/wiki/Minnesota')example_data = table_MN[6]example_data['Country']= example_data['Country'].str.replace(r"\[.*\]","", regex=True)zt.dataframe(id="example_df", df=example_data)