Lines Matching refs:flatten
24 def flatten(name, value, name_sep="_", names_dict=None, parent_name=None, escape_sep=""): function
88 flat_item = flatten(flat_name, val_, name_sep, names_dict, parent_name, escape_sep)
91 flat_item = flatten(flat_name, val, name_sep, names_dict, parent_name, escape_sep)
99 flat_item = flatten(name_k, val, name_sep, names_dict, key, escape_sep)
202 if args.flatten and args.flatten in t and isinstance(t[args.flatten], dict):
203 flat = t.pop(args.flatten)
209 … flat = flatten('', flat, args.transpose_separator, flat_list_dict, str(args.escape_separator))
220 t[args.flatten] = flat_list
222 t[args.flatten] = flat
226 if args.flatten and args.flatten in t and isinstance(t[args.flatten], list):
227 flat = t.pop(args.flatten)
231 … t_clone.update({ args.flatten + args.flatten_separator + k : v for k,v in flat_item.items() })
233 …t_clone.update({ args.flatten + args.flatten_separator + str(idx) : v for idx,v in enumerate(flat_…