Skip to main content

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:

Release files for ismember 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ismember 1.2.0
File Size Uploaded
ismember-1.2.0.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ismember 1.2.0
File Interpreter ABI Platform
ismember-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.1 kB

Release files / ismember-1.2.0.tar.gz

Download URL ismember-1.2.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2263aaaad010e29b7a71bd6a6740e6c925d66574051a49ecaa7d1d213414c9b2
BLAKE2b-256 checksum
How to use checksums
585fff61ea61280a9099968b715d2f27cd48b7c358157a20146e831a308617b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / ismember-1.2.0-py3-none-any.whl

Download URL ismember-1.2.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ad61db70946ccf312be5779e0f17a6b08e32012b947ec30c03836f316853a9b
BLAKE2b-256 checksum
How to use checksums
58f87ad5fe0f0b750ded8b3ff9f8b6c090f684582ab52fcd4d9c2feafbbf6951
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page