jiyachachan commited on
Commit
b0ed8d4
·
verified ·
1 Parent(s): 0171065

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,9 +2,9 @@ import pandas as pd
2
  import altair as alt
3
  import streamlit as st
4
 
5
- # Load the data (replace 'path_to_file.csv' with the actual file paths)
6
- child_mortality = pd.read_csv("fp2/child_mortality_0_5_year_olds_dying_per_1000_born.csv") # Format: Country, Year, Value
7
- gdp_per_capita = pd.read_csv("fp2/gdp_pcap.csv") # Format: Country, Year, Value
8
 
9
  # Melt datasets to tidy format
10
  child_mortality = child_mortality.melt(id_vars=["country"], var_name="year", value_name="child_mortality")
 
2
  import altair as alt
3
  import streamlit as st
4
 
5
+ # Load the data
6
+ child_mortality = pd.read_csv("https://huggingface.co/spaces/jiyachachan/fp2/resolve/main/child_mortality_0_5_year_olds_dying_per_1000_born.csv") # Format: Country, Year, Value
7
+ gdp_per_capita = pd.read_csv("https://huggingface.co/spaces/jiyachachan/fp2/resolve/main/gdp_pcap.csv") # Format: Country, Year, Value
8
 
9
  # Melt datasets to tidy format
10
  child_mortality = child_mortality.melt(id_vars=["country"], var_name="year", value_name="child_mortality")