Two functions performed on lists.
——-unnest ——– Given a list of nested lists and/or nested tuples (a complex nested structure of list/tuples that is not known), the unnest function will extract and return single elements only (strings, floats, integers) that were inside these list and/or tuple structures.
——-list2dict ——– Given a list of strings that may or may not be duplicated, the list2dict function outputs a dictionary having keys equal to the unique strings in the list and values equal to the number of times the string is repeated in the list (count).
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size list_operations.tar.gz (1.9 kB)||File type Source||Python version None||Upload date||Hashes View hashes|