Transform a dcc.html generate table back into df

Given the general example for generate_table is it possible to turn the generated table back into a df? For example I generate and manipulate a table. I then have a save button. When I hit the save button I want it to take the table and save it as a csv file.

Your best bet would be to have a parallel hidden div of the Dataframe stored in JSON with df.to_json(). Your callback to generate the table would then be based on changes to the hidden div
See Example 1 Here https://plot.ly/dash/sharing-data-between-callbacks

3 Likes