AttributeError: module 'streamlit' has no attribute 'cache'

Hello,

I have that error message when running:

@st.cache(load_data1)
def load_data1():
data1 = pd.read_excel(“df_name.xlsx”)
return data1

I think they are switching to @st.experimental_memo and @st.experimental_singleton

Maybe trying this can help you :slight_smile:

2 Likes

Using @st.experimental_memo is working! Thanks :smiley:

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