calc_worldwide_total

calc_worldwide_total(covid_df: pandas.core.frame.DataFrame, parent_region_label='parent_region', region_label='region') → pandas.core.frame.DataFrame[source]

Calculates the worldwide total.

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

  • parent_region_label (str) – name of the parent_region column

  • region_label (str) – name of the region column

Returns

Dataframe containing the worldwide totals.

Return type

pd.DataFrame