def METHOD_NAME(self):
    # training data
    d = {
        "col1": [1, 2, 3],
        "col2": ["a", "a", "c"],
        "col3": [1, 1, 3],
        "col4": ["a", "b", "c"],
    }
    df = pd.DataFrame(data=d)
    categorical = PreprocessingCategorical(
        df.columns, PreprocessingCategorical.CONVERT_INTEGER
    )
    categorical.fit(df)
    df = categorical.transform(df)
    for col in ["col1", "col2", "col3", "col4"]:
        self.assertTrue(col in df.columns)
    self.assertEqual(df["col2"][0], 0)
    self.assertEqual(df["col2"][1], 0)
    self.assertEqual(df["col2"][2], 1)
    self.assertEqual(df["col4"][0], 0)
    self.assertEqual(df["col4"][1], 1)
    self.assertEqual(df["col4"][2], 2)