Commuters

adrio.commuting_flows.Commuters(self, *, fix_missing=0)

Loads data from the US Census Bureau’s ACS Commuting Flows product. This product uses answers to the American Community Survey over a five year period to estimate the number of workers aggregated by where they live and where they work. It is a useful estimate of regular commuting activity between locations.

The product aggregates to the US-County-equivalent granularity, so this ADRIO can work with county or state scopes. Because the data are presented using FIPS codes, we must be certain to use a compatible scope – therefore the data vintage loaded by this ADRIO is based on the geo scope year and not the simulation time frame. Available data years are nominally 2010, 2015, and 2020, however note that the 2020 data year was compiled using 2022 geography.

The result is an NxN matrix of integers, with residency location on the first axis and work location on the second axis.

Parameters

fix_missing: Fill[np.int64] | int | Callable[[], int] | Literal[False] = 0

The method to use to fix missing values. Missing values are common in this dataset, which simply omits pairs of locations for which there were no recorded workers. Therefore the default is to fill with zero.

See Also

The ACS Commuting Flows 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.