Skip to content

Commit 8c5d191

Browse files
committed
fix path again
1 parent b34a580 commit 8c5d191

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dashboard/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
# ---------- Load data ----------
1818
@st.cache_data
1919
def load_data():
20-
return pd.read_csv("../Processed/cleaned_salaries.csv")
20+
# Use Path to construct platform-independent path
21+
from pathlib import Path
22+
csv_path = Path(__file__).parent.parent / "Processed" / "cleaned_salaries.csv"
23+
return pd.read_csv(csv_path)
2124

2225
df = load_data()
2326

0 commit comments

Comments
 (0)