We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ae242dd + d8e0b06 commit f69fbeaCopy full SHA for f69fbea
app/etl/extract.py
@@ -1,8 +1,11 @@
1
import pandas as pd
2
import os
3
-# TODO (Find & Fix)
4
5
-def extract(path: str = "xyz.csv") -> pd.DataFrame :
+# Get the base directory (app/) relative to this file (app/etl/extract.py)
+BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
6
+DEFAULT_DATA_PATH = os.path.join(BASE_DIR, "data.csv")
7
+
8
+def extract(path: str = DEFAULT_DATA_PATH) -> pd.DataFrame :
9
"""
10
Extracts data from CSV, Excel, or JSON file.
11
0 commit comments