dict_list

hhpy.main.dict_list(*args, dict_type: str = 'defaultdict') → dict[source]

Creates a dictionary of empty named lists. Useful for iteratively creating a pandas DataFrame

Parameters:
  • args – The names of the lists
  • dict_type – Whether to use a ‘regular’ or ‘defaultdict’ (default to empty list) type dictionary
Returns:

Dictionary of empty named lists