def _check_set_create_dict_attrs(self):
    'Check attributes that can be dicts and format for all self.cols.'
    dict_attrs = {'normalize': False, 'min_group_name': None, 'combine_min_nan_groups': True, 'min_group_size': None, 'handle_unknown': 'value', 'handle_missing': 'value'}
    for (attr_name, attr_default) in dict_attrs.items():
        attr = copy(getattr(self, attr_name))
        if isinstance(attr, dict):
            for col in self.cols:
                if (col not in attr):
                    attr[col] = attr_default
            setattr(self, ('_' + attr_name), attr)
        else:
            attr_dict = {}
            for col in self.cols:
                attr_dict[col] = attr
            setattr(self, ('_' + attr_name), attr_dict)
    for col in self.cols:
        if ((self._handle_missing[col] == 'return_nan') and (self._combine_min_nan_groups[col] == 'force')):
            raise ValueError(("Cannot have `handle_missing` == 'return_nan' and 'combine_min_nan_groups' == 'force' for columns `%s`." % (col,)))
Check attributes that can be dicts and format for all self.cols.
def _check_set_create_dict_attrs(self):
    
    dict_attrs = {'normalize': False, 'min_group_name': None, 'combine_min_nan_groups': True, 'min_group_size': None, 'handle_unknown': 'value', 'handle_missing': 'value'}
    for (attr_name, attr_default) in dict_attrs.items():
        attr = copy(getattr(self, attr_name))
        if isinstance(attr, dict):
            for col in self.cols:
                if (col not in attr):
                    attr[col] = attr_default
            setattr(self, ('_' + attr_name), attr)
        else:
            attr_dict = {}
            for col in self.cols:
                attr_dict[col] = attr
            setattr(self, ('_' + attr_name), attr_dict)
    for col in self.cols:
        if ((self._handle_missing[col] == 'return_nan') and (self._combine_min_nan_groups[col] == 'force')):
            raise ValueError(("Cannot have `handle_missing` == 'return_nan' and 'combine_min_nan_groups' == 'force' for columns `%s`." % (col,)))