Spaces:
Sleeping
Sleeping
Update map.py
Browse files
map.py
CHANGED
@@ -482,8 +482,8 @@ if my_dataset is not None :
|
|
482 |
# Find the latitude and longitude columns in the dataframe
|
483 |
lat_col, lon_col = find_lat_lon_columns(parser)
|
484 |
if lat_col and lon_col:
|
485 |
-
parser[lat_col] =
|
486 |
-
parser[lon_col] =
|
487 |
# Update the layer configurations
|
488 |
for layer in uap_config['config']['visState']['layers']:
|
489 |
if 'config' in layer and 'columns' in layer['config']:
|
|
|
482 |
# Find the latitude and longitude columns in the dataframe
|
483 |
lat_col, lon_col = find_lat_lon_columns(parser)
|
484 |
if lat_col and lon_col:
|
485 |
+
parser[lat_col] = parser[lat_col].astype(float)
|
486 |
+
parser[lon_col] = parser[lon_col].astype(float)
|
487 |
# Update the layer configurations
|
488 |
for layer in uap_config['config']['visState']['layers']:
|
489 |
if 'config' in layer and 'columns' in layer['config']:
|