def __init__(self, keys, prefix='', formats=None, nomatch_name=None): super(NameCleaner, self).__init__() self._keys = utils.str_or_list(keys) self._name_prefix = prefix self._nomatch_name = nomatch_name if formats: self._name_formats = formats else: self._name_formats = [self.FIRST_LAST, self.LAST_FIRST]
def __init__(self, keys, prefix="", formats=None, nomatch_name=None): super(NameCleaner, self).__init__() self._keys = utils.str_or_list(keys) self._name_prefix = prefix self._nomatch_name = nomatch_name if formats: self._name_formats = formats else: self._name_formats = [self.FIRST_LAST, self.LAST_FIRST]
def __init__(self, keys): super(FieldFilter, self).__init__() self._target_keys = utils.str_or_list(keys)
def __init__(self, keys, separator='_'): super(DictFlattener, self).__init__() self._keys = utils.str_or_list(keys) self._separator = separator
def __init__(self, keys, separator="_"): super(DictFlattener, self).__init__() self._keys = utils.str_or_list(keys) self._separator = separator
def __init__(self, field, values): self._field = field self._values = utils.str_or_list(values)