mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2024-11-28 16:48:20 +01:00
Compare commits
No commits in common. "0cf0bc97f0649b1362d18a8fa700c40ecf94f54f" and "b9c44aed7db4a5c2c387a63510f0824a3e9c895e" have entirely different histories.
0cf0bc97f0
...
b9c44aed7d
@ -361,11 +361,10 @@ def countries_match_regions(row):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Add the missing regions back to the row, paying attention to whether
|
# Add the missing regions back to the row, paying attention to whether
|
||||||
# or not the row's region column is None (aka null) or just an empty
|
# or not the row's regions are blank or not.
|
||||||
# string (length would be 0).
|
if row[region_column_name] is not None:
|
||||||
if row[region_column_name] is not None and len(row[region_column_name]) > 0:
|
row[region_column_name] = row[region_column_name] + "||".join(
|
||||||
row[region_column_name] = (
|
missing_regions
|
||||||
row[region_column_name] + "||" + "||".join(missing_regions)
|
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
row[region_column_name] = "||".join(missing_regions)
|
row[region_column_name] = "||".join(missing_regions)
|
||||||
|
Loading…
Reference in New Issue
Block a user