Update data from dataframe every day

I have setup a streamlit app that reads data from feather format file. But this data gets updated daily. How do I refresh my dashboard with new data daily (my app running in tmux)?

def load_data():
return pd.read_feather(“customer”)

Hello @anaveenan and welcome to the forums !

Perhaps @st.cache(ttl=60*60*24) can help you drop the cache daily ?

streamlit.cache(func=None, persist=False, allow_output_mutation=False, show_spinner=True, suppress_st_warning=False, hash_funcs=None, max_entries=None, ttl=None)

  • ttl (float or None) – The maximum number of seconds to keep an entry in the cache, or None if cache entries should not expire. The default is None.
1 Like