Skip to content

Commit

Permalink
Update skrub/_table_vectorizer.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jérôme Dockès <[email protected]>
  • Loading branch information
Vincent-Maladiere and jeromedockes authored Nov 6, 2023
1 parent c3f5636 commit 28e4c0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skrub/_table_vectorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ def _replace_missing_in_cat_col(ser: pd.Series, value: str = "missing") -> pd.Se
return ser


def _clone_if_default(transformer, DEFAULT_TRANSFORMER):
return clone(transformer) if transformer is DEFAULT_TRANSFORMER else transformer
def _clone_if_default(transformer, default_transformer):
return clone(transformer) if transformer is default_transformer else transformer


def _clone_during_fit(transformer, remainder, n_jobs):
Expand Down

0 comments on commit 28e4c0d

Please sign in to comment.