fuz.utils#

Miscellaneous utilities.

Functions#

dl_to_ld(dict_of_lsts)

Convert a dictionary of lists to a list of dictionaries.

ld_to_dl(lst_of_dicts)

Convert a list of dictionaries to a dictionary of lists.

support_autoreload()

Plum-dispatch iPython autoreload support.

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]

fuz.utils.support_autoreload()[source]#

Plum-dispatch iPython autoreload support.

Return type:

None