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:

1 Like

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