Spaces:
Build error
Build error
Fixed the directory to the dataset
Browse files- apps/data.py +1 -1
apps/data.py
CHANGED
@@ -16,7 +16,7 @@ def app():
|
|
16 |
st.markdown('Dataset by Federico Soriano Palacios ([__fedesoriano__](https://www.kaggle.com/fedesoriano) on Kaggle)')
|
17 |
st.markdown('Source: https://www.kaggle.com/datasets/fedesoriano/stroke-prediction-dataset')
|
18 |
|
19 |
-
df = pd.read_csv("dataset
|
20 |
df['hypertension'] = df['hypertension'].map({0:"No", 1:"Yes"})
|
21 |
df['heart_disease'] = df['heart_disease'].map({0:"No", 1:"Yes"})
|
22 |
df['stroke'] = df['stroke'].map({0:"No", 1:"Yes"})
|
|
|
16 |
st.markdown('Dataset by Federico Soriano Palacios ([__fedesoriano__](https://www.kaggle.com/fedesoriano) on Kaggle)')
|
17 |
st.markdown('Source: https://www.kaggle.com/datasets/fedesoriano/stroke-prediction-dataset')
|
18 |
|
19 |
+
df = pd.read_csv("/home/user/app/dataset/healthcare-dataset-stroke-data.csv")
|
20 |
df['hypertension'] = df['hypertension'].map({0:"No", 1:"Yes"})
|
21 |
df['heart_disease'] = df['heart_disease'].map({0:"No", 1:"Yes"})
|
22 |
df['stroke'] = df['stroke'].map({0:"No", 1:"Yes"})
|