Files
MyManagingTools/src/pages/another_grid.py

16 lines
303 B
Python

import pandas as pd
from components.datagrid.DataGrid import DataGrid
data = {
'Name': ['Kodjo', 'Kokoe', 'Aba', 'Koffi'],
'Age': [49, 51, 46, 51],
'City': ['Rosny', 'Nangis', 'Rosny', 'Abidjan']
}
df = pd.DataFrame(data)
def get_datagrid2():
return DataGrid(df, id="another grid")