Coverage for acspsuedo / source / na_values.py: 100%

13 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-05-11 16:02 +0000

1""" 

2Missing values to properly indicate to users that queries may 

3contain unique integer and/or non-integer values indicating 

4particular characteristics of queried tables. 

5""" 

6 

7# REFERENCE 

8# https://www.census.gov/data/developers/data-sets/acs-1year/notes-on-acs-estimate-and-annotation-values.html 

9# Note that by construction, annotation variables are discarded upon query. 

10# Thus, the concern is only applicable to estimate values. 

11 

12 

13INSUFFICIENT_OBSERVATIONS_FOR_MOE = -222222222 

14""" 

15The margin of error could not be computed because there were an insufficient number of sample observations. 

16""" 

17 

18 

19 

20EXTREME_MEDIAN = -333333333 

21""" 

22The margin of error could not be computed because the median falls in the lowest interval or highest interval 

23of an open-ended distribution. 

24""" 

25 

26 

27 

28INDEPENDENT_ESTIMATE = -555555555 

29""" 

30A margin of error is not appropriate because the corresponding estimate is controlled to an independent 

31population or housing estimate. Effectively, the corresponding estimate has no sampling error and the 

32margin of error may be treated as zero. 

33""" 

34 

35 

36 

37INSUFFICIENT_SAMPLE_OBSERVATIONS = -666666666 

38""" 

39The estimate could not be computed because there were an insufficient number of sample observations. 

40For a ratio of medians estimate, one or both of the median estimates falls in the lowest interval or 

41highest interval of an open-ended distribution. For a 5-year median estimate, the margin of error 

42associated with a median was larger than the median itself. 

43""" 

44 

45 

46 

47UNAVAILABLE_OR_NOT_APPLICABLE_MOE = -888888888 

48"The estimate or margin of error is not applicable or not available." 

49 

50 

51 

52INSUFFICENT_SAMPLES_IN_GEOGRAPHY = -999999999 

53""" 

54The estimate or margin of error cannot be displayed because there were an insufficient number of sample 

55cases in the selected geographic area 

56""" 

57 

58 

59 

60 

61REPLACEMENT_VALUES = [ 

62 INSUFFICIENT_OBSERVATIONS_FOR_MOE, 

63 EXTREME_MEDIAN, 

64 INDEPENDENT_ESTIMATE, 

65 INSUFFICIENT_SAMPLE_OBSERVATIONS, 

66 UNAVAILABLE_OR_NOT_APPLICABLE_MOE, 

67 INSUFFICENT_SAMPLES_IN_GEOGRAPHY 

68]