covid19india / api

Moved to https://github.com/covid19india/data/
https://api.covid19india.org
MIT License
677 stars 606 forks source link

A date outlier #142

Closed kracekumar closed 4 years ago

kracekumar commented 4 years ago

In raw_data.json endpoint, there is a case where statuschangeddate is earlier than dateannounced.

The statepatientid is 'KL-TV-R2'.

# All values of the recovered patient

array([['', 'Returned from London via Bahrain ', '', 'Recovered',
        '13/03/2020', 'Thiruvananthapuram', 'Thiruvananthapuram',
        'Kerala', '', 'M', 'India', 'Travelled from London via Bahrain ',
        '87',
        'https://english.manoramaonline.com/news/kerala/2020/03/13/coronavirus-covid19-cases-kerala-pinarayi-vijayan-italian-kollam.html',
        'https://www.thehindu.com/news/national/kerala/coronavirus-thiruvananthapuram-officials-release-travel-history-of-two-who-tested-positive/article31068119.ece',
        '', 'KL', 'KL-TV-R2', '01/03/2020', 'Imported']],
      dtype=object)

It looks like a data entry error since the number of days to recover should be positive(dateannounced - statuschanged)

sudevschiz commented 4 years ago

Fixed at the data source. However, we are not sure when this patient was discharged. Hence making the statuschange date same as dateannounced.