Skip to content

Commit

Permalink
Merge pull request #61 from dataforgoodfr/scorreia/filepath
Browse files Browse the repository at this point in the history
Use github file path for data loading
  • Loading branch information
scorreia authored May 5, 2024
2 parents e705661 + d5d5dcf commit b0c52d6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/odi_streamlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ def load_data(file: str) -> pd.DataFrame:
return df

# TODO connect to Google Sheet and load data
file_path = "./data/Etape 1 Identification du film - Feuille 1 - enrichi.csv"
#("https://raw.githubusercontent.com/dataforgoodfr/"
# "12_observatoire_des_imaginaires/analyse/streamlit_app_v2/"
# "data/Etape%201%20Identification%20du%20film%20-%20Feuille%201%20-%20enrichi.csv")
#"data/Etape 1 Identification du film - Feuille 1 - enrichi.csv"
file_path = ("https://raw.githubusercontent.com/dataforgoodfr/12_observatoire_des_imaginaires/"
"main/data/Etape%201%20Identification%20du%20film%20-%20Feuille%201%20-%20enrichi.csv")


if "data" not in st.session_state:
st.session_state["data"] = load_data(file_path)
Expand Down

0 comments on commit b0c52d6

Please sign in to comment.