StateDeaths
adrio.cdc.StateDeaths(self,
cause_of_death,*,
=False,
fix_redacted=False,
fix_missing )
Loads deaths data (COVID-19, influenza, pneumonia, and total) from data.cdc.gov’s dataset named “Provisional COVID-19 Death Counts by Week Ending Date and State”.
The data were reported starting 2020-01-04 and aggregated by CDC to the US State level.
This ADRIO supports geo scopes at US State granularity. The data loaded will be matched to the simulation time frame. The result is a 2D matrix where the first axis represents reporting weeks during the time frame and the second axis is geo scope nodes. Values are tuples of date and the integer number of deaths.
Parameters
cause_of_death: Literal['all', 'COVID-19', 'influenza', 'pneumonia']
-
The cause of death.
fix_redacted:
Fill
[np.int64] | int | Callable[[], int] | Literal[False] = False-
The method to use to fix redacted values.
fix_missing:
Fill
[np.int64] | int | Callable[[], int] | Literal[False] = False-
The method to use to fix missing values.
See Also
Attributes
result_format: ResultFormat[np.int64]
-
Information about the format of the ADRIO’s resulting data.
This is an abstract method.
Methods
Name | Description |
---|---|
estimate_data |
Estimate the data usage for this ADRIO in a RUME. |
with_context |
Constructs a clone of this instance which has access to the given context. |
inspect |
Produce an inspection of the ADRIO’s data for the current context. |
evaluate |
Evaluates the ADRIO in the current context. |