Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何获取城市级别的每日新增病例数 #75

Open
lizhiwei1994 opened this issue Apr 8, 2020 · 0 comments
Open

如何获取城市级别的每日新增病例数 #75

lizhiwei1994 opened this issue Apr 8, 2020 · 0 comments

Comments

@lizhiwei1994
Copy link

亲爱的Y叔:

x = load_nCov2019()
x
其中x$data中储存的仅有cum_confirm, cum_heal, cum_dead, 以及suspected的数据,
我想获取城市级别的每日新增数据,
目前我使用的办法是用相邻两日的cum_confirm数据相减,但是会出现负值,
按道理来说cum_confirm中是累计确诊数据,后一天减前一天不可能出现负值,
检查数据后我发现有些地区的cum_confirm前一日有数值,而之后的许多天都是0,所以造成了用相邻两日的cum_confirm数据相减,会出现负值。

所以我想请问,可不可以直接从nCov2019获取每日新增数据。

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

No branches or pull requests

1 participant