From 57db7865e5dd3a2a34647606c8b71f38b3749f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Sch=C3=B6ppach?= Date: Tue, 5 Nov 2024 18:59:48 +0100 Subject: [PATCH] Bug fix: ensure split_data returns a DataFrame --- src/perovskite_tandem_database/parsers/tandemparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/perovskite_tandem_database/parsers/tandemparser.py b/src/perovskite_tandem_database/parsers/tandemparser.py index 67aea00..1f1f283 100644 --- a/src/perovskite_tandem_database/parsers/tandemparser.py +++ b/src/perovskite_tandem_database/parsers/tandemparser.py @@ -202,7 +202,7 @@ def split_data(data, delimiter='|'): expanded_df = pd.DataFrame(expanded_data.tolist(), index=data.index) expanded_df.columns = [f'{data.name}_{i}' for i in range(max_len)] else: - expanded_df = data + expanded_df = pd.DataFrame(data) return expanded_df else: