AgeRange

adrio.acs5.AgeRange()

Models an age range for use with ACS age-categorized data. Unlike Python integer ranges, the end of the this range is inclusive. end can also be None which models the “and over” part of ranges like “85 years and over”.

AgeRange is a NamedTuple.

Attributes

end: int | None

The oldest age included in the range, or None to indicate an unbounded range.

start: int

The youngest age included in the range.

Methods

Name Description
contains Is the other range fully contained in (or coincident with) this range?
parse Parse the age range of an ACS field label; e.g.: Estimate!!Total:!!Male:!!22 to 24 years