From 85139c8acbbd04802f5b5e32cc24e357b3385c47 Mon Sep 17 00:00:00 2001 From: Rohit Rawat <52863845+rrrohit1@users.noreply.github.com> Date: Fri, 14 Jan 2022 17:07:35 -0800 Subject: [PATCH 1/2] Update plot_metric.py --- src/covizpy/plot_metric.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/covizpy/plot_metric.py b/src/covizpy/plot_metric.py index af6a66d..4bcb0f4 100644 --- a/src/covizpy/plot_metric.py +++ b/src/covizpy/plot_metric.py @@ -11,7 +11,7 @@ def plot_metric( Parameters ---------- country : list, optional - A list of the country names of interests, by default ["Canada"] + A list of the country names of interests val : 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 ", @@ -24,4 +24,4 @@ def plot_metric( ------- chart The line chart created - """ \ No newline at end of file + """ From 78d2e7667886dd0c3ae762fe928ce58c7a99b059 Mon Sep 17 00:00:00 2001 From: Rohit Rawat <52863845+rrrohit1@users.noreply.github.com> Date: Fri, 14 Jan 2022 17:40:23 -0800 Subject: [PATCH 2/2] Updated docstring --- src/covizpy/plot_metric.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/covizpy/plot_metric.py b/src/covizpy/plot_metric.py index 4bcb0f4..934a7f2 100644 --- a/src/covizpy/plot_metric.py +++ b/src/covizpy/plot_metric.py @@ -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 - 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