I have a dataset of location and some random values assigned to each location like following dataset picture.
I have fetched the geographic location of each area, saved it in a json file, and then showed it accordingly on the map using markers. But what I want is to show markers based on the total values. That means showing as many markers as the values assigned to each location. How can I do that? here is my code:
data = pd.read_json("Address.json")
lat = list(data["Latitude"])
lon = list(data["Longitude"])
total = list(data["Total"])
map = folium.Map(location =[23.6850,90.3563])
f_group = folium.FeatureGroup(name="Map")
for lt,ln,total in zip(lat,lon,total):
f_group.add_child(folium.CircleMarker(location = [lt,ln], popup="Affected: "+str(total),radius=5, fill_color='red',color='grey',fill_opacity=1))
map.add_child(f_group)
map.save("Map1.html")