I am using pandas, and folium to replicate the following example, but with my CSV data to produce a heat map.
Here's what my data looks like:
and here is the code I am using currently:
import pandas as pd import numpy as np import folium.plugins as plugins from datetime import datetime, timedelta data = [(df3).tolist() for i in range(100)] m = folium.Map([40., -73.], tiles='stamentoner', zoom_start=6) hm = plugins.HeatMapWithTime( data, index=time_index, auto_play=True ) hm.add_to(m) hm.save('map.html')
The example works, but I cannot input my own data, as it results in errors. Would anyone know how to plot the X, and Y data from my CSV or an approach to get me started to produce a heatmap?