Skip to main content

Python package ismember returns array elements that are members of set array.

Project description

ismember

Python PyPI Version GitHub Repo stars License Downloads Downloads Sphinx

ismember is a Python library that checks whether the elements in X is present in Y.

⭐️ Star this repo if you like it ⭐️

Documentation pages

On the documentation pages you can find more information about ismember with examples.

Install ismember from PyPI
pip install ismember     # normal install
pip install -U ismember  # update if needed

Import ismember package

from ismember import ismember

Quick example

Use the documentation pages for more detailed usage. Some of the most used functionalities are linked below.

from ismember import ismember

# Example with lists
I, idx = ismember([1,2,3,None], [4,1,2])
I, idx = ismember(["1","2","3"], ["4","1","2"])

Example: Check whether the elements of X are present in Y

Example: Determine the corresponding location of the values that are present in Y array

Example: Row wise comparison

Example: Elementwise comparison


References

Maintainer

  • Erdogan Taskesen, github: erdogant
  • Contributions are welcome.
  • If you wish to buy me a Coffee for this work, it is very appreciated :)

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

ismember-1.0.3.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

ismember-1.0.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file ismember-1.0.3.tar.gz.

File metadata

  • Download URL: ismember-1.0.3.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for ismember-1.0.3.tar.gz
Algorithm Hash digest
SHA256 f8f013b7faed24145f44e77e6c6960dfec5835c54e4d79f5646089e6d978cce8
MD5 ed3fbaf2d16de1aa94a9e53597940894
BLAKE2b-256 14979aa16eb6a035d835a138fcbc291ebb4bf73dc7bfd8fa55a26d634fcce377

See more details on using hashes here.

File details

Details for the file ismember-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: ismember-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for ismember-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 43e1b903803bbe77ab3a58a4bd5b643238669b9cdfbd420fc51e0dc6d640d0ee
MD5 0805557133b07298fa9f195da4eda299
BLAKE2b-256 eff7cc203e54942cdd7b0f2f6f7a93c9c728bcd7c12f6fe8251f6858464ed7d1

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