I have a taxi frequency dataset like this:
ID Date Latitude Longitude Sample_Mean
01 2019-10-09 40.431753 -3.711294 0.1
03 2019-10-21 40.431753 -3.711294 0.05
32 2020-03-22 40.458772 -3.699815 0.2
44 2020-03-29 40.431753 -3.711294 0.22
I am trying to create a heat map with time using folium to display the volume of taxi's on different days. I'm trying to do the following:
- How to display the 'Date' as an index on the animation?

- How to display the 'ID' on each heat map spot?
- How to display the 'Sample_Mean' on each heat map spot?
This is what I have tried:
# Make basemap
map = folium.Map(location=[25.41, -3.703], zoom_start=15, tiles='CartoDB positron')
df['date'] = df['date'].sort_values(ascending=True)
data = []
for _, d in df.groupby('date'):
data.append([[row['latitude'], row['longitude'], row['Sample_Mean']] for _, row in d.iterrows()])
hm = plugins.HeatMapWithTime(data, auto_play=True,display_index=True,max_opacity=0.8)
hm.add_to(map)
