Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ismember

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ismember

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

  • 1.0.5
  • PyPI
  • Socket score

Maintainers
1

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

References

Maintainer

  • Erdogan Taskesen, github: erdogant
  • Contributions are welcome.
  • If you wish to buy me a Coffee for this work, it is very appreciated :)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc