docstr: Test test_get_col_mapping_ce with target BinaryEncoder
docstr_tok: ["Test","test_get_col_mapping_ce","with","target","BinaryEncoder"]
code: def test_get_col_mapping_ce_3(self):
      """
      Test test_get_col_mapping_ce with target BinaryEncoder
      """
      test = pd.DataFrame(
          {
              "city": ["chicago", "paris", "paris"],
              "state": ["US", "FR", "FR"],
              "other": ["A", np.nan, np.nan],
          }
      )
      y = pd.DataFrame(data=[0, 1, 1], columns=["y"])
  
      enc = ce.BinaryEncoder(cols=["city", "state"])
      enc.fit(test, y)
  
      mapping = get_col_mapping_ce(enc)
      expected_mapping = {
          "city": ["city_0", "city_1"],
          "state": ["state_0", "state_1"],
      }
  
      self.assertDictEqual(mapping, expected_mapping)
  
imports: import unittest
  import pandas
  import numpy
  import category_encoders
  import catboost
  import lightgbm
  import xgboost
  from shapash.utils.transform import inverse_transform, apply_preprocessing, get_col_mapping_ce
  from sklearn.ensemble import GradientBoostingClassifier
label_desc: Use image node_id 37 for calling the TestInverseTransformCaterogyEncoder obj's underlying member method code with example usage: obj.test_get_col_mapping_ce_3() without return types