Open benhuff opened 1 year ago
plot a geodataframe with a datetime column as a playable gif
from bokeh.themes import built_in_themes
print(built_in_themes)
hv.renderer('bokeh').theme = 'dark_minimal'
geodataframe.hvplot.polygons(
geo=True,
tools=['hover'],
width=800,
height=600,
line_color='None',
color='YOUR_VALUE',
clim=(0, MAX_VALUE),
colorbar=False,
xaxis=None,
yaxis=None,
groupby=['DATETIME'],
widget_type='scrubber',
widget_location='bottom'
)
from stack overflow
mask = (df['date'] > '2000-6-1') & (df['date'] <= '2000-6-10')
print(df.loc[mask])