Ashoka74 commited on
Commit
74e4d4f
·
verified ·
1 Parent(s): dcfe1c7

Update map.py

Browse files
Files changed (1) hide show
  1. map.py +2 -2
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] = float(parser[lat_col])
486
- parser[lon_col] = float(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']: