From c70ca8476d688ef03c1d147784fa5b11b96f45d4 Mon Sep 17 00:00:00 2001 From: Lasse Date: Tue, 27 Feb 2024 11:26:40 +0100 Subject: [PATCH 1/2] fix: require polars >= 0.19.0 --- pyproject.toml | 2 +- src/timeseriesflattener/feature_specs/prediction_times.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 39342830..1c6a3720 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ dependencies = [ "frozendict>=2.3.4", "coloredlogs>14.0.0", "tqdm>4.1.0", - "polars>0.18.0", + "polars>0.19.0", "iterpy>=1.6.0", "rich>=13.0.0", ] diff --git a/src/timeseriesflattener/feature_specs/prediction_times.py b/src/timeseriesflattener/feature_specs/prediction_times.py index 417bea47..218233f6 100644 --- a/src/timeseriesflattener/feature_specs/prediction_times.py +++ b/src/timeseriesflattener/feature_specs/prediction_times.py @@ -39,9 +39,7 @@ def __post_init__(self, init_df: InitDF_T): self.df = self.df.with_columns( pl.concat_str( pl.col(self.entity_id_col_name), pl.lit("-"), pl.col(self.timestamp_col_name) - ) - .str.strip_chars() - .alias(self.pred_time_uuid_col_name) + ).alias(self.pred_time_uuid_col_name) ) _validate_col_name_columns_exist(obj=self) From 2e50c798e0e9f20a8a1586903ff8feeb7aa655ea Mon Sep 17 00:00:00 2001 From: Lasse Date: Mon, 26 Feb 2024 10:42:29 +0100 Subject: [PATCH 2/2] docs(#511): add docstrings to aggregators Fixes #511