Skip to content

Commit

Permalink
outbreaks(mpox-2024): add aggregate table
Browse files Browse the repository at this point in the history
abhidg committed Sep 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6633430 commit 481ed95
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/obr/outbreaks/__init__.py
Original file line number Diff line number Diff line change
@@ -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,
8 changes: 8 additions & 0 deletions src/obr/outbreaks/mpox-2024.html
Original file line number Diff line number Diff line change
@@ -66,6 +66,14 @@ <h2>Summary</h2>
</figcaption>
</figure>

<figure>

{{{ aggregate }}}

<figcaption>
<strong>Table 1</strong>: Aggregate data of confirmed cases and deaths by country
</figcaption>
</figure>
<figure>

{{{ age_gender }}}

0 comments on commit 481ed95

Please sign in to comment.