append_to_dict_list

hhpy.main.append_to_dict_list(dct: Union[dict, collections.defaultdict], append: Union[dict, list], inplace: bool = True) → Optional[dict][source]

Appends to a dictionary of named lists. Useful for iteratively creating a pandas DataFrame.

Parameters:
  • dct – Dictionary to append to
  • append – List or dictionary of values to append
  • inplace – Modify inplace or return modified copy
Returns:

None if inplace, else modified dictionary