def transform(self, X):

        if not isinstance(X, pd.DataFrame):
            X = pd.DataFrame(X)

        X = self.ordinal_encoder.transform(X)

        return sum_coding(X, cols=self.cols)
:param X:
dataset/ETHPy150Open wdm0006/categorical_encoding/category_encoders/sum_coding.py/SumEncoder.transform