Skip to main content

Operations with duplicates in python lists

Project description

pyoccur

Python Occurrence Operations on Lists

About Package

A simple python package with 3 functions

  • has_dup()
  • get_dup()
  • remove_dup()

Currently the duplicate operation functions can operate on list of elements with below data types

  • str
  • int
  • float
  • dict
  • list
  • pandas.DataFrame

Example

from pyoccur import pyoccur
l1 = ['abc',123,'def','abc',22,10]
l2 = [{'abc':100},'wee',123,{'abc':100},'abc',123,{'a':1,'b':2}]
pyoccur.has_dup(l1)
# Output: True
pyoccur.get_dup(l2)
# Output: [{'abc':100},123]

Contributing

  • Feel free to raise PR to add your contributions
  • Do raise issues if found any, in the Github Issues

Project details


Download files

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

Source Distribution

pyoccur-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

pyoccur-0.1.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file pyoccur-0.1.0.tar.gz.

File metadata

  • Download URL: pyoccur-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.7.3 Darwin/17.5.0

File hashes

Hashes for pyoccur-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8b623dc0e29b4dc42cac6e69e918b4ba2a3f369057b142ff82fc7e98b973ed35
MD5 9f06cae18025a37bf69626a31954bb83
BLAKE2b-256 7dc6c27b14f0e259dd060fb5e10b48b695f689514eeb8ea7d2c8a1badd4f3530

See more details on using hashes here.

File details

Details for the file pyoccur-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyoccur-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.7.3 Darwin/17.5.0

File hashes

Hashes for pyoccur-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39a7d06e28a52c51037cd34183c6bf734a8e4f95bd3bfaa1171b0a402e54f72b
MD5 5e430b9b456ade0c4d381c26b79cf521
BLAKE2b-256 83a7b1137982e11ec9c566cf4a9cb1ca8fb3c5dc1486694e282f5d788125e6ff

See more details on using hashes here.

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