ismember
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)
| File | Size | Uploaded | |
|---|---|---|---|
| ismember-1.2.0.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|