How to achieve dynamic refresh of st.dataframe data?

Hello everyone, I’m using st.dataframe to create a table, and I hope the data in the table can be dynamically refreshed based on events or other conditions. I’m not sure how to achieve this, and I would appreciate any help. Thank you!

Hi @Alex_Wang

If you connect your Streamlit app to a database and the data updates, this should also be automatically reflected in the dataframe.

There’s a relevant post that best explains the situation and provide a solution (hint: via the use of a database such as Google Sheets):

Hope this helps!

1 Like

@dataprofessor thank you for the reply, i saw thebgoogle sheet post and it’s really interesting, i think that i ll switch from excel to google sheet.
but i would like to know, is there a “connection” with excel files ?

Hi @Snow_Yoo

Here are some step by step tutorials to get you started

Hope this helps!

1 Like

@dataprofessor Thanks a lot !

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.