We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb8db9 commit b99be98Copy full SHA for b99be98
1 file changed
src/batch.py
@@ -92,8 +92,8 @@ def processcsv(inputfile, outputfile, type, lang, statusupdate):
92
write_status_update(statusupdate, len(data), 0)
93
# iterate over the rows
94
for index, row in data.iterrows():
95
- # skip first line, because it contains the column names
96
- if index == 0:
+ # skip first line only if it contains the column names
+ if index == 0 and all(str(row[col]).strip() == col for col in columns):
97
continue
98
# write statistics
99
write_status_update(statusupdate, len(data), index)
0 commit comments