1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2024-12-22 04:02:19 +01: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:
Alan Orth 2019-09-21 17:19:39 +03:00
parent 3d5c8bdf5d
commit f304ca6a33
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -60,7 +60,7 @@ def run(argv):
# 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)
for column in df.columns.values.tolist():
for column in df.columns:
# Check if the user requested to skip any fields
if args.exclude_fields:
skip = False