strict=False hinzugefügt wie in der Fehlermeldung vorgeschlagen
parent
99a112df24
commit
f114eb7f5a
|
@ -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
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue