-
Notifications
You must be signed in to change notification settings - Fork 44
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
How to replace JHU data with country-wise data (India) and error in cleaning country level datasets #120
Comments
Dear Rakesh, ind_data = cs.CountryData("/kaggle/input/covid19-in-india/covid_19_india.csv",country="India") Before: Country="India" Thank you. |
Dear Rakesh, (If you find errors or something to know, please let me know as always.) Did you use the following dataset? I think the following codes will be necessary. ind_data.set_variables(
date="Date", confirmed="Confirmed", fatal="Deaths", recovered="Cured", province="State/UnionTerritory"
) |
Dear @lisphilar/covid19-sir
<reply@reply.github.com> ,
Yes..,you are right..,the given code is necessary as column name were not
matching..,thanks for the help..
With regards,
Rakesh
…On Sat, Jul 18, 2020 at 10:18 PM Lisphilar ***@***.***> wrote:
Dear Rakesh,
Please read documentation of CountryData.set_variables()
https://lisphilar.github.io/covid19-sir/covsirphy.cleaning.html#covsirphy.cleaning.country_data.CountryData.set_variables
(If you find errors or something to know, please let me know as always.)
Did you used the following dataset?
https://www.kaggle.com/sudalairajkumar/covid19-in-india?select=covid_19_india.csv
I think the following codes will be necessary.
ind_data.set_variables(date="Date", confirmed="Confirmed", fatal="Deaths", recovered="Cured", province="State/UnionTerritory"
)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#120 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP6Y4PGNNOM25Y77WKYFPJDR4HG6BANCNFSM4O77E7SA>
.
|
Thank you! |
Dear Lisphilar, i am agin encountering error in in running the above code:- ValueError: Cannot convert non-finite values (NA or inf) to integer With regards, |
Dear Rakesh, |
Dear Lisphilar, |
Dear Rakesh, |
Dear @lisphilar ,
while running the following code,i am getting mentioned error:-
ind_data = cs.CountryData("/kaggle/input/covid19-in-india/covid_19_india.csv",Country="India")
ind_data.set_variables(
date="Date", confirmed="Positive", fatal="Fatal", recovered="Discharged", province=None
)
ind_data.cleaned().tail()
TypeError: init() got an unexpected keyword argument 'Country'
I just replace the country by India in place of japan and change the file path too...,but in spite of that I am getting above error..,will you please help..
With regards,
Rakesh
The text was updated successfully, but these errors were encountered: