From 4203538cab56a92cf32e1f8483315733531e8d97 Mon Sep 17 00:00:00 2001 From: Lars Schilders <123180911+lschilders@users.noreply.github.com> Date: Tue, 8 Oct 2024 09:23:19 +0200 Subject: [PATCH] Update openstef/feature_engineering/missing_values_transformer.py Co-authored-by: Egor Dmitriev Signed-off-by: Lars Schilders <123180911+lschilders@users.noreply.github.com> --- openstef/feature_engineering/missing_values_transformer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openstef/feature_engineering/missing_values_transformer.py b/openstef/feature_engineering/missing_values_transformer.py index 33ae3f99..7c46e519 100644 --- a/openstef/feature_engineering/missing_values_transformer.py +++ b/openstef/feature_engineering/missing_values_transformer.py @@ -45,9 +45,7 @@ def __init__( self.missing_values = missing_values self.imputation_strategy = imputation_strategy self.fill_value = fill_value - if no_fill_future_values_features is None: - no_fill_future_values_features = [] - self.no_fill_future_values_features = no_fill_future_values_features + self.no_fill_future_values_features = no_fill_future_values_features or [] self.is_fitted_ = False # Build the proper imputation transformer