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 details)

Uploaded Source

File details

Details for the file list_operations.tar.gz.

File metadata

  • Download URL: list_operations.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for list_operations.tar.gz
Algorithm Hash digest
SHA256 727dab8ef83831125654a8dfe567b7bcaaec2e727504cd11e73893a0cb1b6498
MD5 5cd3dfa02da91f40ec881ede68001558
BLAKE2b-256 272da5a8b8c9c09c081455ed7566e5831ba10023492f616f14f0fa9ff2a2317e

See more details on using hashes here.

Supported by

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