Skip to content

Commit

Permalink
Merge pull request #12 from UBC-MDS/plot-metric
Browse files Browse the repository at this point in the history
Update plot_metric.py
  • Loading branch information
rrrohit1 authored Jan 15, 2022
2 parents 05d7664 + 78d2e76 commit 28c8393
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/covizpy/plot_metric.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
def plot_metric(
country=["Canada"],
metric="positive_rate",
date_from=None,
date_to=None
):
"""
Create a line chart presenting specific country/countries COVID total new
cases and another metric for a time period
Create a line chart visualizing COVID total new
cases and another metric for a specific time period
Parameters
----------
country : list, optional
A list of the country names of interests, by default ["Canada"]
val : str, optional
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", "cardiovasc_death_rate ",
or any other numeric column
Expand All @@ -24,4 +21,4 @@ def plot_metric(
-------
chart
The line chart created
"""
"""

0 comments on commit 28c8393

Please sign in to comment.