Coverage for censusdis/values.py: 100%
14 statements
« prev ^ index » next coverage.py v6.5.0, created at 2025-04-03 05:39 +0000
« prev ^ index » next coverage.py v6.5.0, created at 2025-04-03 05:39 +0000
1# Copyright (c) 2022 Darren Erik Vengroff
2"""
3Special estimate values that may be returned from the U.S. Census API.
5See https://www.census.gov/data/developers/data-sets/acs-1year/notes-on-acs-estimate-and-annotation-values.html
6"""
8INSUFFICIENT_SAMPLE_OBSERVATIONS = -666666666
9"""
10Insufficient number of sample observations.
12The estimate could not be computed because there were an insufficient number of sample observations.
13For a ratio of medians estimate, one or both of the median estimates falls in the lowest interval or
14highest interval of an open-ended distribution. The estimate could not be computed because there were
15an insufficient number of sample observations. For a ratio of medians estimate, one or both of the
16median estimates falls in the lowest interval or highest interval of an open-ended distribution. For
17a 5-year median estimate, the margin of error associated with a median was larger than the median itself.
18"""
20INSUFFICIENT_SAMPLES_IN_GEOGRAPHY = -999999999
21"""
22Insufficient samples in geography.
24The estimate or margin of error cannot be displayed because there were an insufficient number of sample
25cases in the selected geographic area.
26"""
28NOT_APPLICABLE_OR_NOT_AVAILABLE = -888888888
29"""
30Not applicable or not available.
32The estimate or margin of error is not applicable or not available.
33"""
35INSUFFICIENT_SAMPLE_OBSERVATIONS_FOR_MARGIN_OF_ERROR = -222222222
36"""
37Insufficient sample observations for margin of error.
39The margin of error could not be computed because there were an insufficient number of sample observations.
40"""
42MEDIAN_IN_OPEN_INTERVAL = -333333333
43"""
44Median falls in an open-ended interval.
46The margin of error could not be computed because the median falls in the lowest interval or highest interval
47of an open-ended distribution.
48"""
50MARGIN_OF_ERROR_NOT_APPROPRIATE = -555555555
51"""
52Margin of error not appropriate.
54A margin of error is not appropriate because the corresponding estimate is controlled to an independent
55population or housing estimate. Effectively, the corresponding estimate has no sampling error and the margin
56of error may be treated as zero.
57"""
59ALL_SPECIAL_VALUES = (
60 INSUFFICIENT_SAMPLE_OBSERVATIONS,
61 INSUFFICIENT_SAMPLES_IN_GEOGRAPHY,
62 NOT_APPLICABLE_OR_NOT_AVAILABLE,
63 INSUFFICIENT_SAMPLE_OBSERVATIONS_FOR_MARGIN_OF_ERROR,
64 MEDIAN_IN_OPEN_INTERVAL,
65 MARGIN_OF_ERROR_NOT_APPROPRIATE,
66)