docstr: Check attributes setting that don't play nicely `self.cols`.
docstr_tok: ["Check","attributes","setting","that","do","n't","play","nicely","`","self.cols","`","."]
code: def _check_set_create_attrs(self):
      """Check attributes setting that don't play nicely `self.cols`."""
      if not (
          (self.combine_min_nan_groups in ["force", True, False, None])
          or isinstance(self.combine_min_nan_groups, dict)
      ):
          raise ValueError(
              "'combine_min_nan_groups' should be one of: "
              "['force', True, False, None] or type dict."
          )
  
      if (
          self.handle_missing == "return_nan"
          and self.combine_min_nan_groups == "force"
      ):
          raise ValueError(
              "Cannot have `handle_missing` == 'return_nan' and "
              "'combine_min_nan_groups' == 'force' for all columns."
          )
  
      if (
          self.combine_min_nan_groups is not None
          and self.min_group_size is None
      ):
          pass
          # raise ValueError(
          #     "`combine_min_nan_groups` only works when `min_group_size` "
          #     "is set for all columns."
          # )
  
      if (
          self.min_group_name is not None
          and self.min_group_size is None
      ):
          raise ValueError(
              "`min_group_name` only works when `min_group_size` is set "
              "for all columns."
          )
  
      if self.combine_min_nan_groups is None:
          self.combine_min_nan_groups = True
  
file_path: category_encoders/category_encoders/count.py
imports: import numpy
  import pandas
  import category_encoders.utils
  from category_encoders.ordinal import OrdinalEncoder
  from copy import copy
label_desc: Use image node_id 6 for calling the CountEncoder obj's underlying member method code with example usage: obj._check_set_create_attrs() without return types