ImperialCollegeLondon / safedata_validator

Python tools to validate and publish datasets using the safedata metadata format.
https://safedata-validator.readthedocs.io/
MIT License
2 stars 4 forks source link

Forbid NA as categorical level name #100

Open davidorme opened 8 months ago

davidorme commented 8 months ago

It should be an error to specify NA as a possible categorical variable level. So something like this:

Alive;Dead;NA

should generate something like:

! Do not include the missing data code 'NA' as a level descriptor

rather than:

! Categories found in levels descriptor not used in data: 'NA'

This means no-one can call a level NA but that would be highly confusing!