I have a df of incident report information with a few columns. Among them, I have the column of year (year of the report information), latitude and longitude. This df has around 1.1 million lines as below
YEAR LAT LONG
2007 -23.54888115 -46.61859308
2007 -23.53578729 -46.76441089
2011 -23.60330318 -46.67685451
2018 -23.5403854 -46.3614019
I want to make a heat graph per year using the lat and long information but I have no idea how to iterate over the years and for each year plot the latitudes and longitudes.
map = folium.Map(location=[-23.5475, -46.63611])
ano = df_furtos['ANO_BO'].tolist()
lat = df_furtos['LATITUDE'].tolist()
lng = df_furtos['LONGITUDE'].tolist()
HeatMap(list(zip(lat, lng))).add_to(map)
I'm using Folium to plot the graph, but I know how to make the graph just by using lat and long.
However, I want that if I have a 10-year history of lat and long, I want to plot 10 graphs each with their respective latitudes and longitudes.
Can someone help me? Thanks!!