Spaces:
Running
Running
Commit ·
3db2dd5
1
Parent(s): 34a6013
fix file location
Browse files
asean_visa_avaibility_playwright.csv → src/data/asean_visa_avaibility_playwright.csv
RENAMED
|
File without changes
|
visa_avaibility_playwright_20251015.csv → src/data/visa_avaibility_playwright_20251015.csv
RENAMED
|
File without changes
|
src/pages/Passport_Power_Explorer.py
CHANGED
|
@@ -22,7 +22,7 @@ def load_and_process_data(filepath):
|
|
| 22 |
try:
|
| 23 |
df = pd.read_csv(filepath)
|
| 24 |
except FileNotFoundError:
|
| 25 |
-
st.error(f"Error: The file was not found at '{filepath}'. Please make sure 'asean_visa_avaibility_playwright.csv' is in the project's
|
| 26 |
return pd.DataFrame()
|
| 27 |
|
| 28 |
# --- Feature Engineering: Extract Visa Type and Duration ---
|
|
@@ -77,7 +77,7 @@ st.markdown("Analyze inbound and outbound visa requirements for Southeast Asian
|
|
| 77 |
# Adjust the path to be relative to the script's location if needed
|
| 78 |
# Assuming the script is in src/pages and the CSV is in the root
|
| 79 |
# The path should be ../../visa_avaibility_playwright_20251015.csv
|
| 80 |
-
file_path = "
|
| 81 |
visa_df = load_and_process_data(file_path)
|
| 82 |
|
| 83 |
if not visa_df.empty:
|
|
|
|
| 22 |
try:
|
| 23 |
df = pd.read_csv(filepath)
|
| 24 |
except FileNotFoundError:
|
| 25 |
+
st.error(f"Error: The file was not found at '{filepath}'. Please make sure 'asean_visa_avaibility_playwright.csv' is in the project's src/data directory.")
|
| 26 |
return pd.DataFrame()
|
| 27 |
|
| 28 |
# --- Feature Engineering: Extract Visa Type and Duration ---
|
|
|
|
| 77 |
# Adjust the path to be relative to the script's location if needed
|
| 78 |
# Assuming the script is in src/pages and the CSV is in the root
|
| 79 |
# The path should be ../../visa_avaibility_playwright_20251015.csv
|
| 80 |
+
file_path = "src/data/asean_visa_avaibility_playwright.csv"
|
| 81 |
visa_df = load_and_process_data(file_path)
|
| 82 |
|
| 83 |
if not visa_df.empty:
|