I’m using the file uploader to upload a 200mb csv and I feel like the csv files gets reloaded everytime I make changes to the other charts. Am I using st.cache the correct way?
@st.cache()
def load_data(file):
df = pd.read_csv(file)
return df
data = st.file_uploader(“Choose a CSV file”, type=“csv”, key=‘file_uploader’)