From cafe64dd6917990c5ac7a4840e95120c8c6befa2 Mon Sep 17 00:00:00 2001 From: Ralph Filho Date: Mon, 7 Oct 2024 21:10:12 -0300 Subject: [PATCH] fix: transformations --- butterfree/transform/aggregated_feature_set.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/butterfree/transform/aggregated_feature_set.py b/butterfree/transform/aggregated_feature_set.py index 813b73ce..516b6fed 100644 --- a/butterfree/transform/aggregated_feature_set.py +++ b/butterfree/transform/aggregated_feature_set.py @@ -576,11 +576,10 @@ def construct( pre_hook_df = self.run_pre_hooks(dataframe) - # Apply transformations + output_df = pre_hook_df for feature in self.keys + [self.timestamp]: - output_df = feature.transform(pre_hook_df) + output_df = feature.transform(output_df) - # Early filter data output_df = self.incremental_strategy.filter_with_incremental_strategy( dataframe=output_df, start_date=start_date, end_date=end_date )