Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update appStore/prep_data.py
Browse files- appStore/prep_data.py +1 -1
appStore/prep_data.py
CHANGED
@@ -100,7 +100,7 @@ def process_giz_worldwide():
|
|
100 |
giz_df['url'] = ''
|
101 |
|
102 |
# Convert CRS value to numeric then to integer if possible.
|
103 |
-
if 'crs_key' in
|
104 |
giz_df['crs_key'] = giz_df['crs_key'].apply(lambda x: str(int(float(x))) if pd.notnull(x) and str(x).strip() != "" else x)
|
105 |
|
106 |
# Compute text_size based on merged_text and assign full text to the 'chunks' column
|
|
|
100 |
giz_df['url'] = ''
|
101 |
|
102 |
# Convert CRS value to numeric then to integer if possible.
|
103 |
+
if 'crs_key' in giz_df.columns:
|
104 |
giz_df['crs_key'] = giz_df['crs_key'].apply(lambda x: str(int(float(x))) if pd.notnull(x) and str(x).strip() != "" else x)
|
105 |
|
106 |
# Compute text_size based on merged_text and assign full text to the 'chunks' column
|