Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Api Data does not match Dashboard #472

Open
NDBaxi opened this issue May 8, 2021 · 2 comments
Open

Api Data does not match Dashboard #472

NDBaxi opened this issue May 8, 2021 · 2 comments

Comments

@NDBaxi
Copy link

NDBaxi commented May 8, 2021

I want to use the data in csv files from following api
https://api.covid19india.org/csv/latest/case_time_series.csv
https://api.covid19india.org/csv/latest/districts.csv
For data provenance, I ran a simple sum() of columns in the above CSV files to compare against the covid19india.org App.
This is what I am getting:
Total Confirmed = 2,666,894,500
Total Deceased = 38,032,319
Above numbers are consistent with both the CSV files, implying that the source of raw data from which above CSV files are generated is same.

Question -
Why are these numbers completely different than what I am seeing on the dashboard of covid19india.org App
Can help to make me understand what am I not getting right?

@bee-rickey
Copy link
Member

Are you adding daily confirmed or total confirmed? Looks like you are adding total confirmed and that's leading to sum over cumulative numbers.

@NDBaxi
Copy link
Author

NDBaxi commented May 9, 2021

Ah, ok. Thanks for that clarification, which brings me to couple of new questions. Appreciate if you could clarify them too.
So I need to either sum over 'Daily' numbers or take difference over 'Total' numbers. Is that what it would entail?
I am more interested in data at a more granular level provided for the 'districts.csv' in the link https://api.covid19india.org/csv/latest/districts.csv
Are these also cumulative numbers like in the case of 'case_time_series.csv'?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants