From 05448441d354b94449a07dee64c69a09db2b77a4 Mon Sep 17 00:00:00 2001 From: Robert Gale Date: Mon, 26 Aug 2019 13:37:05 -0700 Subject: [PATCH] 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. --- util/feeding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/feeding.py b/util/feeding.py index 35bb5bfc..1a928951 100644 --- a/util/feeding.py +++ b/util/feeding.py @@ -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