1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2024-11-22 05:45:02 +01:00

Make output less debuggy

This commit is contained in:
Alan Orth 2019-07-27 09:21:13 +03:00
parent a849615b41
commit c47c064a13
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
2 changed files with 1 additions and 3 deletions

View File

@ -10,8 +10,6 @@ def run():
# Fix whitespace in all columns
for column in df.columns.values.tolist():
print(f'DEBUG: {column}')
# Run whitespace fix on all columns
df[column] = df[column].apply(fix.whitespace)

View File

@ -24,7 +24,7 @@ def whitespace(field):
match = re.findall(pattern, value)
if len(match) > 0:
print('DEBUG: Excessive whitespace')
print(f'Excessive whitespace: {value}')
value = re.sub(pattern, ' ', value)
# Save cleaned value