From 5eae29328a19e2829da44c882e9a746c714b8f0c Mon Sep 17 00:00:00 2001 From: "Julian.Endres" Date: Fri, 15 Mar 2024 14:35:11 +0100 Subject: [PATCH] Leave no doubt --- data_adapter_oemof/build_datapackage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_adapter_oemof/build_datapackage.py b/data_adapter_oemof/build_datapackage.py index 11cf2c1..ea8a1f1 100644 --- a/data_adapter_oemof/build_datapackage.py +++ b/data_adapter_oemof/build_datapackage.py @@ -483,7 +483,7 @@ def build_datapackage( def _reduce_lists(x): """Unnest list of single tuple or list of single list""" - if isinstance(x[0], (list, tuple)): + if isinstance(x[0], (list, tuple)) and len(x[0]) == 1: x = x.map(lambda x: x[0]) return x