src.testing.task_plot_overall_share_known_cases

Module Contents

Functions

task_plot_overall_share_known_cases(depends_on, produces)

_calculate_share_known_cases(df)

Calculate the share of known cases from detected and undetected cases.

task_plot_overall_share_known_cases(depends_on, produces)[source]
_calculate_share_known_cases(df)[source]

Calculate the share of known cases from detected and undetected cases.

Parameters

df (pandas.DataFrame) – Dataframe with columns “date”, “type” and “count”. Each date and type is a row.

Returns

share of known cases in the total number of cases.

Return type

share_known_cases (pandas.Series)