code: def test_pandas_categorical(self):
      X = pd.DataFrame(
          {
              "Str": ["a", "c", "c", "d"],
              "Categorical": pd.Categorical(
                  list("bbea"), categories=["e", "a", "b"], ordered=True
              ),
          }
      )
  
      enc = encoders.OrdinalEncoder()
      out = enc.fit_transform(X)
  
      th.verify_numeric(out)
      self.assertEqual(3, out["Categorical"][0])
      self.assertEqual(3, out["Categorical"][1])
      self.assertEqual(1, out["Categorical"][2])
      self.assertEqual(2, out["Categorical"][3])
  
imports: import pandas
  from unittest import TestCase
  import tests.helpers
  import numpy
  import category_encoders
label_desc: Use image node_id 3 for calling the TestOrdinalEncoder obj's underlying member method code with example usage: obj.test_pandas_categorical() without return types