We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3a97ea4 + f1d05ae commit b277922Copy full SHA for b277922
_delphi_utils_python/delphi_utils/__init__.py
@@ -12,5 +12,6 @@
12
from .geomap import GeoMapper
13
from .smooth import Smoother
14
from .signal import add_prefix
15
+from .nancodes import Nans
16
17
__version__ = "0.1.0"
_delphi_utils_python/delphi_utils/nancodes.py
@@ -0,0 +1,13 @@
1
+"""Unified not-a-number codes for CMU Delphi codebase."""
2
+
3
+from enum import IntEnum
4
5
+class Nans(IntEnum):
6
+ """An enum of not-a-number codes for the indicators."""
7
8
+ NOT_MISSING = 0
9
+ NOT_APPLICABLE = 1
10
+ REGION_EXCEPTION = 2
11
+ PRIVACY = 3
+ DELETED = 4
+ UNKNOWN = 5
0 commit comments