From f114eb7f5ace98462f99c903ec141a7c7a06ae90 Mon Sep 17 00:00:00 2001 From: mmaurostoffel <166130318+mmaurostoffel@users.noreply.github.com> Date: Sun, 12 Jan 2025 11:20:39 +0100 Subject: [PATCH] =?UTF-8?q?strict=3DFalse=20hinzugef=C3=BCgt=20wie=20in=20?= =?UTF-8?q?der=20Fehlermeldung=20vorgeschlagen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etl/src/data/etl_property_capacities.py | 3 +-- etl/src/data/etl_region_capacities.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/etl/src/data/etl_property_capacities.py b/etl/src/data/etl_property_capacities.py index 06a527f..37db5a1 100644 --- a/etl/src/data/etl_property_capacities.py +++ b/etl/src/data/etl_property_capacities.py @@ -35,5 +35,4 @@ def property_capacities(id: int): max_capacity_perc = 100 / max_capacity result['capacities'].append(round(max_capacity_perc * row['sum'], 2)) result['capacities'].reverse() - return result - + return result \ No newline at end of file diff --git a/etl/src/data/etl_region_capacities.py b/etl/src/data/etl_region_capacities.py index db7a1fe..989cf5b 100644 --- a/etl/src/data/etl_region_capacities.py +++ b/etl/src/data/etl_region_capacities.py @@ -33,7 +33,7 @@ def region_capacities(id: int): gridData.append([row['ScrapeDate'], sum_hor, calDF.width]) # Create Aggregates of values - df = pl.DataFrame(gridData) + df = pl.DataFrame(gridData, strict=False) df_count = df.group_by("column_0").agg(pl.col("column_1").count()) df_sum = df.group_by("column_0").agg(pl.col("column_1").sum()) df_numDays = df.group_by("column_0").agg(pl.col("column_2").max())