Skip to content

Commit

Permalink
Merge pull request #35 from Lewiscowles1986/fix/remove-experimental-memo
Browse files Browse the repository at this point in the history
fix: switch from experimental_memo to cache_data
  • Loading branch information
epogrebnyak authored Nov 1, 2024
2 parents b256abd + e701d87 commit 7121275
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions app/release.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 7121275

Please sign in to comment.