CovidTracker.plot_geographical

Module Contents

Functions

plot_geographical(covid_df, metric)

Creates a chloropleth map showing the number

CovidTracker.plot_geographical.plot_geographical(covid_df, metric)
Creates a chloropleth map showing the number

of covid cases or other metric in each province of Canada

Parameters
  • covid_df (pd.core.frame.DataFrame) – Pandas dataframe containing covid data to plot.

  • metric (str) – column in the dataframe to plot

Returns

plot – Cloropleth map of Covid metric numbers

Return type

matplotlib.figure

Examples

>>> plot_geographical(covid_df,'cases')