We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b34a580 commit 8c5d191Copy full SHA for 8c5d191
dashboard/app.py
@@ -17,7 +17,10 @@
17
# ---------- Load data ----------
18
@st.cache_data
19
def load_data():
20
- return pd.read_csv("../Processed/cleaned_salaries.csv")
+ # 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)
24
25
df = load_data()
26
0 commit comments