src.testing.task_plot_overall_share_known_cases
¶
Module Contents¶
Functions¶
|
|
Calculate the share of known cases from detected and undetected cases. |
- _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)