Fixed issue where multiple csvs could not load

With the new `create_dataset` approach introduced by PR #2283 (read: mine, sorry!), duplicate
indices in the df would cause a fatal error where the columns could not be referenced by
name. Adding `ignore_index=True` during append allows pandas to assign new indices to
rows, and fixes the issue.
This commit is contained in:
Robert Gale 2019-08-26 13:37:05 -07:00
parent 4c14c6b78b
commit 05448441d3

View File

@ -27,7 +27,7 @@ def read_csvs(csv_files):
if source_data is None:
source_data = file
else:
source_data = source_data.append(file)
source_data = source_data.append(file, ignore_index=True)
return source_data