Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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")
|