Skip to main content

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

Project description

ismember

Python PyPI Version 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.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

ismember-1.0.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ismember-1.0.2.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for ismember-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b1a784e45ba9d1fd18303fe3b829270a6922954cc5798f49fdf843758a8d0d10
MD5 22c90da5fa1cd7abd0c10ab251a5b0c4
BLAKE2b-256 42fde5bf44bbf29aed3793c1aaa81f24c22df33d05210544ffae09b1971efbca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ismember-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for ismember-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 67319cd9f02d6f66124a22c16f42d174a4697aaaf23a931eff44fae4525ec493
MD5 6cf641de2c56429a1769113ba70a7f29
BLAKE2b-256 dfa3073356336d44aa5b2920234df6d4b55d8750d435cbd826f3c8c077355e83

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