Ashoka74 commited on
Commit
2110deb
·
verified ·
1 Parent(s): 92df087

Update map.py

Browse files
Files changed (1) hide show
  1. map.py +7 -2
map.py CHANGED
@@ -482,8 +482,13 @@ 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] = 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']:
 
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
+ # try:
486
+ # parsed[lat_col] = pd.to_datetime(df_[column], infer_datetime_format=True, errors='coerce')
487
+
488
+ # parser[lat_col] = parser[lat_col].astype(float)
489
+ # parser[lon_col] = parser[lon_col].astype(float)
490
+ # except:
491
+ # pass
492
  # Update the layer configurations
493
  for layer in uap_config['config']['visState']['layers']:
494
  if 'config' in layer and 'columns' in layer['config']: