fuz.utils#
Miscellaneous utilities.
Functions#
Module Contents#
- fuz.utils.dl_to_ld(dict_of_lsts)[source]#
Convert a dictionary of lists to a list of dictionaries.
Modified from: https://stackoverflow.com/questions/5558418/list-of-dicts-to-from-dict-of-lists
- Parameters:
dict_of_lsts (dict[str, list])
- Return type:
list[dict[str, Any]]
- fuz.utils.ld_to_dl(lst_of_dicts)[source]#
Convert a list of dictionaries to a dictionary of lists.
Modified from: https://stackoverflow.com/questions/5558418/list-of-dicts-to-from-dict-of-lists
- Parameters:
lst_of_dicts (list[dict[str, Any]])
- Return type:
dict[str, list]