Creating dropdown menu for tables

Hi every, i was able to create a dropdown menu for different the tutorials from this link with my dataset, but finding it difficult to create dropdown menu for tables.
I also know how to create a table using graph object, i just don’t know how to create a dropdown menu for tables.
Below is what i want to achieve.
1
2

So when i change the dropdown menu the tables change according.
Thank you.

Here’s one approach using callbacks to filter the dataframe: python - Dash DataTable drop-down filter - Stack Overflow. This would be a server-side approach.

If you don’t need dropdowns with the unique options and are okay with free-text search, then you could use the built-in filtering features of dash.data_table: Filtering Syntax | Dash for Python Documentation | Plotly. This would be a client-side approach.

1 Like