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

**URL:** <https://community.plotly.com/t/dash-table-passing-variables-to-another-callback-download-data-and-additional-rows/43428>\
**Category:** Dash Python\
**Created:** [August 5, 2020, 8:14pm UTC](https://community.plotly.com/t/dash-table-passing-variables-to-another-callback-download-data-and-additional-rows/43428 "2020-08-05T20:14:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![AnnMarieW](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@AnnMarieW](https://community.plotly.com/u/AnnMarieW)\
**Post date:** [August 7, 2020, 1:59am UTC](https://community.plotly.com/t/dash-table-passing-variables-to-another-callback-download-data-and-additional-rows/43428/2 "2020-08-07T01:59:46Z")

</div>

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](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](https://community.plotly.com/t/how-to-get-your-questions-answered-on-the-plotly-forum/40551)

---

_[View the full topic](https://community.plotly.com/t/dash-table-passing-variables-to-another-callback-download-data-and-additional-rows/43428)._
