From 4fbb6410b32c6058a5ed8f58a152729acf063ba2 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Wed, 23 Mar 2022 10:34:03 +0100 Subject: [PATCH] cosmetic changes --- sensospot_data/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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))