code: def test_binary_dist(self):
      data = np.array(["apple", "orange", "peach", "lemon"])
      encoder = encoders.BinaryEncoder()
      encoder.fit(data)
  
      # split dataframe into two transforms and recombine
      a = encoder.transform(data[:1])
      b = encoder.transform(data[1:])
      split = pd.concat([a, b])
      split = split.reset_index(drop=True)
  
      # run all at once
      c = encoder.transform(data)
  
      # make sure they are the same
      self.assertTrue(split.equals(c))
  
file_path: category_encoders/tests/test_binary.py
imports: import pandas
  from unittest import TestCase
  import numpy
  import category_encoders
label_desc: Use image node_id 2 for calling the TestBinaryEncoder obj's underlying member method code with example usage: obj.test_binary_dist() without return types