Skip to content

Commit

Permalink
Update mca.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Sep 7, 2024
1 parent e1ff8e4 commit 0644d88
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions prince/mca.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,6 @@ def __init__(
def _prepare(self, X):
if self.one_hot:
# Create the one-hot encoder if it doesn't exist (usually because we're in the fit method)
# if not hasattr(self, "one_hot_encoder_"):
# self.one_hot_encoder_ = (
# (
# sklearn.preprocessing.OneHotEncoder(
# handle_unknown=self.handle_unknown, sparse_output=False
# )
# .set_output(transform="pandas")
# .fit(X)
# )
# if not hasattr(self, "one_hot_encoder_")
# else self.one_hot_encoder_
# )
# X = self.one_hot_encoder_.transform(X)
X = pd.get_dummies(X, columns=X.columns)
return X

Expand Down

0 comments on commit 0644d88

Please sign in to comment.