From f304ca6a3315f2f46b4670e51c7deae06d141683 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 21 Sep 2019 17:19:39 +0300 Subject: [PATCH] csv_metadata_quality/app.py: Use simpler column iteration I don't know where I got the other one... --- csv_metadata_quality/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csv_metadata_quality/app.py b/csv_metadata_quality/app.py index cb0932e..f8afdeb 100644 --- a/csv_metadata_quality/app.py +++ b/csv_metadata_quality/app.py @@ -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