From 481ed95338e0d789642055eed7e10dd762ddf6ab Mon Sep 17 00:00:00 2001 From: Abhishek Dasgupta Date: Sat, 7 Sep 2024 22:34:04 +0100 Subject: [PATCH] outbreaks(mpox-2024): add aggregate table --- src/obr/outbreaks/__init__.py | 9 +++++++++ src/obr/outbreaks/mpox-2024.html | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/src/obr/outbreaks/__init__.py b/src/obr/outbreaks/__init__.py index 71ebcd2..83f3b49 100644 --- a/src/obr/outbreaks/__init__.py +++ b/src/obr/outbreaks/__init__.py @@ -4,6 +4,7 @@ from ..plots import ( get_counts, + get_aggregate, get_countries_with_status, get_countries_with_anyof_statuses, plot_epicurve, @@ -62,6 +63,14 @@ "button_text": "Download MPXV clades", }, ), + ( + "table/aggregate", + get_aggregate, + { + "country_col": "Location_Admin0", + "columns": [("Case_status", "confirmed"), ("Outcome", "death")], + }, + ), ( "data", get_countries_with_status, diff --git a/src/obr/outbreaks/mpox-2024.html b/src/obr/outbreaks/mpox-2024.html index 3dfbd37..7cc4a4a 100644 --- a/src/obr/outbreaks/mpox-2024.html +++ b/src/obr/outbreaks/mpox-2024.html @@ -66,6 +66,14 @@

Summary

+
+ + {{{ aggregate }}} + +
+ Table 1: Aggregate data of confirmed cases and deaths by country +
+
{{{ age_gender }}}