display datatable after filtering rows from dropdown list in dash display datatable after filtering rows from dropdown list in dash flask flask

display datatable after filtering rows from dropdown list in dash


You have to set the columns of your data table and return your dataframe as a dict in a special form. So change these two lines in your code to make it work.

dt.DataTable(id='table-container', columns=[{'id': c, 'name': c} for c in df.columns.values])return dff.to_dict('records')

BTW, do anyone know where I can find collections of dash app gallery with code?

Best place with lots of examples with code is the Dash User Guide. You can for instance find the data table there.