Python package ismember returns array elements that are members of set array.
Project description
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
References
Maintainer
Project details
Release history Release notifications | RSS feed
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.5.tar.gz
(6.9 kB
view details)
Built Distribution
File details
Details for the file ismember-1.0.5.tar.gz
.
File metadata
- Download URL: ismember-1.0.5.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bb0e7c75fb8b512fbe0e87564bcad638f2eaa76f72099041115e42020cd768d |
|
MD5 | d4716d3ed4bdeef356310443f2d2c0e7 |
|
BLAKE2b-256 | b843059a58f5f626549c5337b9071c9c8ec3de5f1e80d21b0c732c5a7324fa7b |
File details
Details for the file ismember-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: ismember-1.0.5-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a0102aa0e54d18f35bc7bdaeb9ab7a39bd54e3597f35e7a45d9f2628850612c |
|
MD5 | 110e5dcbf4ba261fa88792a7aeb8f19c |
|
BLAKE2b-256 | 77598ff585b3a35266cf50bbc4e3f637ac97fb4ab9b643039481c471dfe26534 |