Update DataFrame

I have a data frame displayed at the top of my app. Later on, by using a button the data frame gets updated. Is there any way to update this data frame at the top of the page to display the changed information? Or equally, is there any code that can be added to the button to force a page refresh?
Thanks in advance!

Hi @jackmleitch, welcome to the Streamlit community.

You can append data to a dataframe using the add_rows method:

https://docs.streamlit.io/en/stable/api.html?highlight=add_rows#streamlit.delta_generator.DeltaGenerator.add_rows

This will trigger the page to refresh the object to include the new data.

Best,
Randy