──────────────────────────────────────────────────────────────────────── Tables ────────────────────────────────────────────────────────────────────────
dataset
┏━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Row ┃ Field ┃ Type ┃ Message ┃
┡━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ None │ None │ package-error │ The data package has an error: None is not of type 'string' at property 'taxonomic/0/family' │
│ None │ None │ package-error │ The data package has an error: None is not of type 'string' at property 'taxonomic/1/family' │
│ None │ None │ package-error │ The data package has an error: None is not of type 'string' at property 'taxonomic/3/family' │
│ None │ None │ package-error │ The data package has an error: None is not of type 'string' at property 'taxonomic/4/family' │
│ None │ None │ package-error │ The data package has an error: None is not of type 'string' at property 'taxonomic/5/family' │
│ None │ None │ package-error │ The data package has an error: None is not of type 'string' at property 'taxonomic/8/family' │
│ None │ None │ package-error │ The data package has an error: None is not of type 'string' at property 'taxonomic/9/family' │
│ None │ None │ package-error │ The data package has an error: None is not of type 'string' at property 'taxonomic/11/family' │
└──────┴───────┴───────────────┴───────────────────────────────────────────────────────────────────────────────────────────────┘
We should probably set those to NULL (not NA) in update_taxonomic(), which will cause them to be removed when writing.
When writing to datapackage.json, ranks that have
NA
are written asNULL
:This causes a validation error:
We should probably set those to NULL (not NA) in
update_taxonomic()
, which will cause them to be removed when writing.