mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2025-06-05 08:53:03 +02:00
csv_metadata_quality/app.py: Use simpler column iteration
I don't know where I got the other one...
This commit is contained in:
@ -60,7 +60,7 @@ def run(argv):
|
|||||||
# Read all fields as strings so dates don't get converted from 1998 to 1998.0
|
# Read all fields as strings so dates don't get converted from 1998 to 1998.0
|
||||||
df = pd.read_csv(args.input_file, dtype=str)
|
df = pd.read_csv(args.input_file, dtype=str)
|
||||||
|
|
||||||
for column in df.columns.values.tolist():
|
for column in df.columns:
|
||||||
# Check if the user requested to skip any fields
|
# Check if the user requested to skip any fields
|
||||||
if args.exclude_fields:
|
if args.exclude_fields:
|
||||||
skip = False
|
skip = False
|
||||||
|
Reference in New Issue
Block a user