ReadVaxData Class#

class ReadVaxData.readVaxData(nation)#

Bases: object

This class is used to read vaccination data from vax_data.csv for this we will use dataframes similar to how we dealt with hospital data

get_packed_data()#

Returns all vaccinaiton data in the nested list format.

get_vax_age_groups()#

Returns the age groups as they are in the dataframe.

get_vax_age_groups_string()#

Returns the age groups for use in a graph or report.

get_vax_aged_data(age_group)#

returns vaccination data for a given age group as a dataframe. This makes it easier to navigate the dataframe.

Args:
age_group

Integer Value, these age groups can be seen at the start of this class under self.vax_age_groups.

Returns:

A dataframe with vaccinaiton data for the selected age group.

get_vax_data()#

Loads the data into a dataframe.

Returns:

Vaccination dataframe in the nested list format.

unpack_data()#

unpacks the vaccination data as each day is in a nested list.

Returns:

The full unpacked dataframe .