diff --git a/sensospot_data/__init__.py b/sensospot_data/__init__.py index 470158b..6a1332c 100644 --- a/sensospot_data/__init__.py +++ b/sensospot_data/__init__.py @@ -92,9 +92,7 @@ def _parse_recursive(source, outfile, quiet): _parse_one_folder(f, child_outfile, quiet) for f in non_hidden ) try: - collected_data = pandas.concat( - collection, ignore_index=True - ).reset_index() - _output(collected_data, source_path, outfile) + collected = pandas.concat(collection, ignore_index=True) + _output(collected.reset_index(), source_path, outfile) except ValueError as e: print(str(e))