# Update Pandas Dataframe from Callback

**URL:** <https://community.plotly.com/t/update-pandas-dataframe-from-callback/40782>\
**Category:** Dash Python\
**Created:** [June 9, 2020, 1:07am UTC](https://community.plotly.com/t/update-pandas-dataframe-from-callback/40782 "2020-06-09T01:07:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saboo.anuj17](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@saboo.anuj17](https://community.plotly.com/u/saboo.anuj17)\
**Post date:** [June 9, 2020, 1:07am UTC](https://community.plotly.com/t/update-pandas-dataframe-from-callback/40782/1 "2020-06-09T01:07:47Z")

</div>

Hi,

I have 4 variables which the user selects and clicks button. I am able to get these variables in the callback function, make a series, append to the dataframe and update a time series graph with new data.

On the next entry, the data is appended again to the original dataframe and hence I lose data from my 1st update.

The goal is to let the user enter n times, each single time append into the dataframe and update the graph. I am stuck at mainly how to append my dataframe everytime the user clicks the Submit button.

Could you please help how can I go about doing this?

Thanks & Best Regds  
Anuj Saboo
