def fit(self, X):
        """
        Args:
            X: DataFrame of categorical features to encode
        """
        self.categorical_encoder = self.encoder_class(cols=list(X))
        self.categorical_encoder.fit(X)
        return self
def fit ( self , X ) : self . categorical_encoder = self . encoder_class ( cols = list ( X ) ) self . categorical_encoder . fit ( X ) return self
Args:
            X: DataFrame of categorical features to encode