calc_country_total

calc_country_total(covid_df: pandas.core.frame.DataFrame) → pandas.core.frame.DataFrame[source]

Calculates the total for each country from the covid_df, where only data for regions was present before

Parameters

covid_df (pd.DataFrame) – covid19 DataFrame (needs to be in uniform style)

Returns

Dataframe containing the totals for countries, which before only had their regions listed.

Return type

pd.DataFrame