PopulationByRace
adrio.acs5.PopulationByRace(self,
race,*,
=False,
fix_insufficient_data=False,
fix_missing )
Loads population by race from the US Census ACS 5-Year Data (group B02001). ACS5 data is compiled from surveys taken during a rolling five year period, and as such are estimates.
Data is available using CensusScope geographies, from StateScope down to BlockGroupScope (aggregates are computed by the Census Bureau). Data is loaded according to the scope’s year, from 2009 to 2023.
The result is an N-shaped array of integers.
Parameters
race: RaceCategory
-
The Census-defined race category to load.
fix_insufficient_data:
Fill
[np.int64] | int | Callable[[], int] | Literal[False] = False-
The method to use to fix values for which there were insufficient data to report (sentinel value: -666666666).
fix_missing:
Fill
[np.int64] | int | Callable[[], int] | Literal[False] = False-
The method to use to fix missing values.
See Also
The ACS 5-Year documentation from the US Census.
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. |