fschwartzer commited on
Commit
6eeacf7
1 Parent(s): af8d197

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def add_heatmap_layer(map_obj, data, column_name, colormap_name, radius=15):
25
  fill_opacity=0.7,
26
  color='black',
27
  weight=0.5,
28
- popup=f"{column_name}: {value:.2f}"
29
  ).add_to(heat_layer)
30
 
31
  heat_layer.add_to(map_obj)
 
25
  fill_opacity=0.7,
26
  color='black',
27
  weight=0.5,
28
+ popup=f"{column_name}: {row[column_name]:.2f}" # Fix here
29
  ).add_to(heat_layer)
30
 
31
  heat_layer.add_to(map_obj)