mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2024-11-22 05:45:02 +01:00
csv_metadata_quality/check.py: Add check for missing isbn values
This commit is contained in:
parent
64e7a73417
commit
02f9d8a736
@ -35,6 +35,10 @@ def isbn(field):
|
|||||||
|
|
||||||
from stdnum import isbn
|
from stdnum import isbn
|
||||||
|
|
||||||
|
# Skip fields with missing values
|
||||||
|
if pd.isna(field):
|
||||||
|
return
|
||||||
|
|
||||||
# Try to split multi-value field on "||" separator
|
# Try to split multi-value field on "||" separator
|
||||||
for value in field.split('||'):
|
for value in field.split('||'):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user