Skip to content

Commit a253b13

Browse files
author
xhlulu
committed
Fix data path
Former-commit-id: 15a8ed2
1 parent 88edffb commit a253b13

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

apps/dash-food-footprint/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import os
2+
13
import dash
24
import dash_core_components as dcc
35
import dash_html_components as html
@@ -9,7 +11,8 @@
911
import plotly.graph_objs as go
1012
import plotly.express as px
1113

12-
path = "https://raw.githubusercontent.com/InesRoque3/GroupV_project2/main/data/"
14+
dirname = os.path.dirname(__file__)
15+
path = os.path.join(dirname, "data/")
1316

1417
emissions = pd.read_csv(path + "emissions_with_origin.csv")
1518
productions = pd.read_csv(path + "productions.csv.gz")
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-3.7.6

0 commit comments

Comments
 (0)