docstr: Test the min_group_size int  on 'none' and 'na_categorical'.
docstr_tok: ["Test","the","min_group_size","int","on","'none","'","and","'na_categorical","'","."]
code: def test_count_min_group_size_int(self):
      """Test the min_group_size int  on 'none' and 'na_categorical'."""
      enc = encoders.CountEncoder(min_group_size=7)
  
      enc.fit(X)
      out = enc.transform(X_t)
      self.assertTrue(pd.Series([6, 5, 3]).isin(out["none"]).all())
      self.assertTrue(out["none"].unique().shape == (3,))
      self.assertTrue(out["none"].isna().sum() == 0)
      self.assertIn(np.nan, enc.mapping["none"])
      self.assertTrue(
          pd.Series([13, 7]).isin(out["na_categorical"]).all()
      )
      self.assertTrue(out["na_categorical"].unique().shape == (2,))
      self.assertIn("B_C_nan", enc.mapping["na_categorical"])
      self.assertFalse(np.nan in enc.mapping["na_categorical"])
  
file_path: category_encoders/tests/test_count.py
imports: import pandas
  from unittest import TestCase
  import numpy
  import category_encoders
label_desc: Use image node_id 6 for calling the TestCountEncoder obj's underlying member method code with example usage: obj.test_count_min_group_size_int() without return types