Rank23

Results 5 comments of Rank23

Try to run: confirmed=pd.merge(confirmed, population,how='left' ,on=['Province/State','Country/Region']) and make sure the 'population' df columns name are: Province/State | Country/Region | Population

You should check why you get zero values in t.iloc[,2]. If for some reason you get zeros, you can replace them with the actual values.

The updated data sets were taken from the following URLs: url = 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv' #url = 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Confirmed.csv' confirmed = pd.read_csv(url, error_bad_lines=False) #url = 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Deaths.csv' url = 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_deaths_global.csv' death = pd.read_csv(url, error_bad_lines=False)...

It seems like you don't get predictions from R script. You can share your code with me and I'll try to assist. [email protected]

Can you verify 'rpy2' is well installed and you are allowed to pass df objects from R to Python? Try a simple example.