def METHOD_NAME(self, X):
    if (
        self._convert_method == PreprocessingCategorical.CONVERT_LOO
        and self._columns
    ):
        return self._enc.METHOD_NAME(X)
    else:
        for column, lbl_params in self._convert_params.items():
            if "unique_values" in lbl_params and "new_columns" in lbl_params:
                # convert to one hot
                lbl = LabelBinarizer()
                lbl.from_json(lbl_params)
                X = lbl.METHOD_NAME(X, column)
            else:
                # convert to integer
                lbl = LabelEncoder()
                lbl.from_json(lbl_params)
                X.loc[:, column] = lbl.METHOD_NAME(X.loc[:, column])
        return X