Skip to content

Commit

Permalink
added line in import_data.excel_reader to strip trailing commas and s…
Browse files Browse the repository at this point in the history
…paces from ends of cells, so that they don't cause errors
  • Loading branch information
sbreiff committed May 7, 2018
1 parent 368e32f commit b33bb70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wranglertools/import_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,8 @@ def excel_reader(datafile, sheet, update, connection, patchall, aliases_by_type,

# iterate over the rows
for values in row:
# Delete trailing commas and spaces
values = [item.strip(', ') for item in values]
# Rows that start with # are skipped
if values[0].startswith("#"):
continue
Expand Down

0 comments on commit b33bb70

Please sign in to comment.