either. You don’t want to reload the data each time the app is updated –
luckily Streamlit allows you to cache the data.
Effortless caching
Try adding @st.cache before the load_data declaration:
python
   @st.cache
   def load_data(nrows):
Then save the script, and Streamlit will automatically rerun your app. Since
   this is the first time you’re running the script with @st.cache, you won't
   see anything change. Let’s tweak your file a little bit more so that you can
   see the power of caching.
Replace the line data_load_state.text('Loading data...done!') with this:
python
   data_load_state.text("Done! (using st.cache)")
Now save. See how the line you added appeared immediately? If you take a
   step back for a second, this is actually quite amazing. Something magical is
   happening behind the scenes, and it only takes one line of code to activate
