Skip to main content

Two functions performed on lists.

Project description

——-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).

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

list_operations.tar.gz (1.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page