Skip to content

Commit

Permalink
fix: move incremental filter (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphrass authored Oct 18, 2024
1 parent a11a699 commit b802f69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions butterfree/transform/aggregated_feature_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,10 +580,6 @@ def construct(
for feature in self.keys + [self.timestamp]:
output_df = feature.transform(output_df)

output_df = self.incremental_strategy.filter_with_incremental_strategy(
dataframe=output_df, start_date=start_date, end_date=end_date
)

if self._windows and end_date is not None:
# Run aggregations for each window
agg_list = [
Expand Down Expand Up @@ -636,6 +632,10 @@ def construct(
else:
output_df = self._aggregate(output_df, features=self.features)

output_df = self.incremental_strategy.filter_with_incremental_strategy(
dataframe=output_df, start_date=start_date, end_date=end_date
)

output_df = output_df.select(*self.columns).replace( # type: ignore
float("nan"), None
)
Expand Down

0 comments on commit b802f69

Please sign in to comment.