mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2025-05-08 06:06:00 +02:00
Fix whitespace errors found by flake8
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import pandas as pd
|
||||
|
||||
|
||||
def issn(field):
|
||||
"""Check if an ISSN is valid.
|
||||
|
||||
@ -71,7 +72,6 @@ def separators(field):
|
||||
if len(match) > 0:
|
||||
print(f'Invalid multi-value separator: {field}')
|
||||
|
||||
|
||||
return field
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
import pandas as pd
|
||||
import re
|
||||
|
||||
|
||||
def whitespace(field):
|
||||
"""Fix whitespace issues.
|
||||
|
||||
@ -34,4 +35,3 @@ def whitespace(field):
|
||||
new_field = '||'.join(values)
|
||||
|
||||
return new_field
|
||||
|
||||
|
Reference in New Issue
Block a user