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


☕ Support

If you find this project useful, consider supporting me:

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.2.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ismember-1.2.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ismember-1.2.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for ismember-1.2.0.tar.gz
Algorithm Hash digest
SHA256 2263aaaad010e29b7a71bd6a6740e6c925d66574051a49ecaa7d1d213414c9b2
MD5 33ea052461fb03316dc04f9bb5d1cd87
BLAKE2b-256 585fff61ea61280a9099968b715d2f27cd48b7c358157a20146e831a308617b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ismember-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for ismember-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ad61db70946ccf312be5779e0f17a6b08e32012b947ec30c03836f316853a9b
MD5 38e1bbd827e1f1a5741979364cc18229
BLAKE2b-256 58f87ad5fe0f0b750ded8b3ff9f8b6c090f684582ab52fcd4d9c2feafbbf6951

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