owid / monkeypox

Analyzing the data produced by the World Health Organization on the 2022 mpox outbreak
MIT License
15 stars 8 forks source link

Total deaths incorrectly drops to zero #2

Closed pearcircuitmike closed 2 years ago

pearcircuitmike commented 2 years ago

For example, the "world" metric shows total deaths drop to zero. This is impacting other countries, like Brazil. A possible solution would be to update the code so the generated file shows "total deaths" as a running total of "new deaths." Looks like that was what was happening until a few days ago - now there's lots of empty/zero values for total deaths.

edomt commented 2 years ago

Hi @pearcircuitmike

I believe this is most likely due to the software or script you're using to import the data, which must be replacing NA values with 0 automatically.

In our CSV file, these values are set to NA after the last known death:

image image

The reason why we don't fill total_deaths forward is that some countries report monkeypox data very irregularly, which means we don't always know whether new deaths have occurred since then.