@@ -434,7 +434,7 @@ def transform(self, column):
434434 transformed : DataFrame
435435 The extracted features.
436436 """
437- check_is_fitted (self , "extracted_features_ " )
437+ check_is_fitted (self , "all_outputs_ " )
438438 name = sbd .name (column )
439439
440440 # Checking again which values are null if calling only transform
@@ -460,6 +460,8 @@ def transform(self, column):
460460 X_out = sbd .copy_index (column , sbd .make_dataframe_like (column , all_extracted ))
461461 X_out = sbd .concat (X_out , * new_features , axis = 1 )
462462
463+ self .all_outputs_ = sbd .column_names (X_out )
464+
463465 # Censoring all the null features
464466 X_out = sbd .where_row (X_out , not_nulls , null_mask )
465467
@@ -492,6 +494,22 @@ def __sklearn_tags__(self):
492494 tags .transformer_tags = TransformerTags (preserves_dtype = [])
493495 return tags
494496
497+ def get_feature_names_out (self , input_features = None ):
498+ """Get output feature names for transformation.
499+
500+ Parameters
501+ ----------
502+ input_features : array-like of str or None, default=None
503+ Ignored.
504+
505+ Returns
506+ -------
507+ feature_names_out : ndarray of str objects
508+ Transformed feature names.
509+ """
510+ check_is_fitted (self , "all_outputs_" )
511+ return self .all_outputs_
512+
495513
496514class _SplineEncoder (SingleColumnTransformer ):
497515 """Generate univariate B-spline bases for features.
0 commit comments