covizpy.plot_metric
Module Contents
Functions
|
Create a line chart visualizing COVID total new |
- covizpy.plot_metric.plot_metric(location='Canada', metric='positive_rate', date_from=None, date_to=None)[source]
Create a line chart visualizing COVID total new cases and another metric for a specific time period
- Parameters
location (str, optional) – The name of the location to be plotted with the new COVID cases. It can be any of the values present in the location column of df
metric (str, optional) – The name of the metric to be plotted with the new COVID cases. It can be one of the these: “reproduction_rate”, “positive_rate”, or any other numeric column
date_from (str, optional) – Start date of the plot in “YYYY-MM-DD” format, by default “2022-01-01”
date_to (str, optional) – End date of the plot in “YYYY-MM-DD” format, by default “2022-01-13”
- Returns
The line chart created
- Return type
chart