code: def test_ordinal_dist(self):
      data = np.array([["apple", "lemon"], ["peach", None]])
      encoder = encoders.OrdinalEncoder()
      result = encoder.fit_transform(data)
      self.assertEqual(
          2,
          len(result[0].unique()),
          "We expect two unique values in the column",
      )
      self.assertEqual(
          2,
          len(result[1].unique()),
          "We expect two unique values in the column",
      )
      self.assertFalse(np.isnan(result.iloc[1, 1]))
  
      encoder = encoders.OrdinalEncoder(handle_missing="return_nan")
      result = encoder.fit_transform(data)
      self.assertEqual(
          2,
          len(result[0].unique()),
          "We expect two unique values in the column",
      )
      self.assertEqual(
          2,
          len(result[1].unique()),
          "We expect two unique values in the column",
      )
  
imports: import pandas
  from unittest import TestCase
  import tests.helpers
  import numpy
  import category_encoders
label_desc: Use image node_id 2 for calling the TestOrdinalEncoder obj's underlying member method code with example usage: obj.test_ordinal_dist() without return types