import folium
from folium.plugins
import FastMarkerCluster
print(df['Lon'].mean() )
print(df['Lat'].mean())
m=folium.Map(location=[df['Lat'].mean(),df['Lon'].mean()],zoom_start=15)
def add_marker(row):
if row['RSRP_Signal']>-80:
marker=folium.CircleMarker([row['Lat'],row['Lon']],radius=2,color='green',popup=row['RSRP_Signal'])
marker.add_to(m)
elif row['RSRP_Signal']>-100:
marker=folium.CircleMarker([row['Lat'],row['Lon']],radius=2,color='blue',popup=row['RSRP_Signal'])
marker.add_to(m)
else:
marker=folium.CircleMarker([row['Lat'],row['Lon']],radius=2,color='red',popup=row['RSRP_Signal'])
marker.add_to(m)
subset.apply(add_marker,axis=1)
m.save('C:/Nishant/Gtech/folium.html')
m