diff --git a/prince/mca.py b/prince/mca.py index ea118be..76ca057 100644 --- a/prince/mca.py +++ b/prince/mca.py @@ -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