Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,13 +36,13 @@ except Exception as e:
|
|
| 36 |
occupational_groups_df = pd.DataFrame() # Fallback to an empty DataFrame or handle the error appropriately
|
| 37 |
|
| 38 |
try:
|
| 39 |
-
esco_df = pd.read_csv("ISCOGroups_en.csv", on_bad_lines='skip', dtype={'code': str} # Force 'code' to be read as string
|
| 40 |
except Exception as e:
|
| 41 |
print(f"Error reading ISCOGroups_en.csv: {e}")
|
| 42 |
esco_df = pd.DataFrame() # Fallback to an empty DataFrame or handle the error appropriately
|
| 43 |
|
| 44 |
try:
|
| 45 |
-
esco_level5_df = pd.read_csv("occupations_en.csv", on_bad_lines='skip', dtype={'code': str, 'iscoGroup': str, } # Force 'code' to be read as string
|
| 46 |
except Exception as e:
|
| 47 |
print(f"Error reading occupations_en.csv: {e}")
|
| 48 |
esco_level5_df = pd.DataFrame() # Fallback to an empty DataFrame or handle the error appropriately
|
|
|
|
| 36 |
occupational_groups_df = pd.DataFrame() # Fallback to an empty DataFrame or handle the error appropriately
|
| 37 |
|
| 38 |
try:
|
| 39 |
+
esco_df = pd.read_csv("ISCOGroups_en.csv", on_bad_lines='skip', dtype={'code': str} ) # Force 'code' to be read as string
|
| 40 |
except Exception as e:
|
| 41 |
print(f"Error reading ISCOGroups_en.csv: {e}")
|
| 42 |
esco_df = pd.DataFrame() # Fallback to an empty DataFrame or handle the error appropriately
|
| 43 |
|
| 44 |
try:
|
| 45 |
+
esco_level5_df = pd.read_csv("occupations_en.csv", on_bad_lines='skip', dtype={'code': str, 'iscoGroup': str, } ) # Force 'code' to be read as string
|
| 46 |
except Exception as e:
|
| 47 |
print(f"Error reading occupations_en.csv: {e}")
|
| 48 |
esco_level5_df = pd.DataFrame() # Fallback to an empty DataFrame or handle the error appropriately
|