jianxu305 / nCov2019_analysis

Analysis of 2019-nCov coronavirus data
GNU General Public License v3.0
117 stars 65 forks source link

the function utils.load_chinese_data() doesn't work #10

Closed JinChengneng closed 4 years ago

JinChengneng commented 4 years ago

Hey there,

I've found that the function utils.load_chinese_data() doesn't work. The error has been thrown saying that ValueError: Cannot mask with non-boolean array containing NA / NaN values.

I would appreciate it if you would take a glance at it.

jianxu305 commented 4 years ago

The source data format is changed. I modified my code a little and it should work now. Please give a try. Thanks.

JinChengneng commented 4 years ago

Thanks a lot for your timely help. The function utils.load_chinese_data() works well now. Unfortunately, the subsequent function utils.aggDaily(data) throws another error saying that ValueError: ('Some columns are dropped: ', {'continentName', 'countryEnglishName', 'continentEnglishName', 'countryName'}). I hope this information would help to fix this problem.

jianxu305 commented 4 years ago

This is another case that the source data had been changed. But it's fixed now. Please give a try. Thanks.

JinChengneng commented 4 years ago

Well, it works as expected now. Thanks for your great effort!