Dash Table (Passing variables to another callback, download data, and additional rows)

Hi @fhalawa

Here are some suggestions:

  1. The most common way to add rows or do any other data prep in the callback is to use a pandas dataframe. When the data in the df is how you want it to look in the table, then data = df.to_dict(“records”) will put it in a format needed to update the data property of the table. Output('table', 'data)

  2. To use the output of this table in another callback, you can use it as an input in that callback:
    Input(‘table’, ‘data’)

  3. There is a good example of how to export data from a table in the last topic here: https://dash.plotly.com/datatable/editable

If you still have questions, it’s easier to help if you can provide a minimal example with some sample data. For more information see: How to Get your Questions Answered on the Plotly Forum

1 Like