You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow code of conduct and to engage in discussion actively.
I agree to create a new issue with the other templates if developers request.
Question
Please help me to implement the updated version of CovsirPhy for the US City Level COVID-19 reproduction number estimation.
I am getting COVID-19 cases, deaths, and recovery counts from local health departments in CSV fils. Earlier with CovSirPhy 2.21 'DataLoader', I was successfully computing the reproduction numbers using CSV Files but now I am getting many errors. This may be because 'DataLoader' is deprecated in the current version.
Thanks
What tried
MyOlderCode:
# Create a DataLoader instance loader=cs.DataLoader(update_interval=None)
# Read local Data Frame loader.read_dataframe(df_CasesDeath, parse_dates=["date"], dayfirst=False)
# df_CasesDeath has City_Name, Cases, Deaths, and Recovery columns# Check the data frameprint(loader.local)
# Set necessary columns: country name and population # with pandas.DataFrame.assign() intenallyloader.assign(country="US", province=df_CountyPopulation.County.iloc[i], population=df_CountyPopulation.Population.iloc[i])
# df_CountyPopulation has City_Name, and Population columns# Check the data frameprint(loader.local)
# Lock data by specifing column names to useloader.lock(date="date", country="country", province="province", confirmed="confirmed", fatal="fatal", population="population")
# Check locked dataprint(loader.locked)
# Create JHUData instancejhu_data=loader.jhu()
# Start scenario analysissnl=cs.Scenario(country="US", province=df_CountyPopulation.County.iloc[i])
snl.register(jhu_data)
snl.records()
print(snl.summary())
snl.estimate(cs.SIRF)
_=snl.history(target="Rt")
# phase="last" means the last phasesprint(snl.get("Rt", phase="last"))
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Checkbox
Question
Please help me to implement the updated version of CovsirPhy for the US City Level COVID-19 reproduction number estimation.
I am getting COVID-19 cases, deaths, and recovery counts from local health departments in CSV fils. Earlier with CovSirPhy 2.21 'DataLoader', I was successfully computing the reproduction numbers using CSV Files but now I am getting many errors. This may be because 'DataLoader' is deprecated in the current version.
Thanks
What tried
Additional Context
No response
The text was updated successfully, but these errors were encountered: