Covid Map¶
Plot map¶
-
class
Map_covid(df_covid, granularity, cases)¶ Creates an animated map.
- Parameters
df_covid (dataframe) – dataframe with covid data
granularity (dataframe) – dep or region
cases (str) – column from df_covid
-
plot_all()¶ Display the animated map with the widget.
-
update_plot(date_index)¶ Update the map plot accordign to a slider widget.
- Parameters
date_index (ipywidgets.IntSlider) – time slider with all the date in df_covid
-
widget()¶ Create a widget with time slider with every date.