diff --git a/app/data.py b/app/data.py index a7d6654..2cf2344 100644 --- a/app/data.py +++ b/app/data.py @@ -6,12 +6,12 @@ url_csv = "https://raw.githubusercontent.com/epogrebnyak/ssg-dataset/main/data/ssg.csv" -@st.experimental_memo +@st.cache_data def get_data(): return pd.read_csv(url_csv, parse_dates=["created", "modified"]) -@st.experimental_memo +@st.cache_data def palette(languages, default_color="#BEBEBE"): r = requests.get( "https://raw.githubusercontent.com/ozh/github-colors/master/colors.json" diff --git a/app/release.md b/app/release.md index 9871687..706c7df 100644 --- a/app/release.md +++ b/app/release.md @@ -1,3 +1,7 @@ +# Next + +- replacing `@st.experimental_memo` with `@st.cache_data` + # Up from 0.4.3 - using `@st.experimental_memo` and `data.py` for CSV data import (thanks @blackary)