import pointblank as pb
cdisc_missing = pb.MissingSpec.from_cdisc(null_reason="unknown")
cdisc_missing.reason_for(None)'unknown'
Create a MissingSpec for the standard HL7/CDISC null flavors (short alias).
Usage
This is a shorter name for from_cdisc_null_flavors(), and it takes the same keyword arguments (null_is_missing=, null_reason=, and description=).
**kwargs: Any MissingSpecimport pointblank as pb
cdisc_missing = pb.MissingSpec.from_cdisc(null_reason="unknown")
cdisc_missing.reason_for(None)'unknown'
Here nulls get the "unknown" reason rather than the default "no_information", which still places them in the "unknown" category.