1
0
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:
Alan Orth 2019-07-26 23:44:58 +03:00
parent 64e7a73417
commit 02f9d8a736
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -35,6 +35,10 @@ def isbn(field):
from stdnum import isbn
# Skip fields with missing values
if pd.isna(field):
return
# Try to split multi-value field on "||" separator
for value in field.split('||'):