ismember


Nameismember JSON
Version 1.0.4 PyPI version JSON
download
home_pagehttps://erdogant.github.io/ismember
SummaryPython package ismember returns array elements that are members of set array.
upload_time2024-05-04 08:46:11
maintainerNone
docs_urlNone
authorErdogan Taskesen
requires_python>=3
licenseNone
keywords
VCS
bugtrack_url
requirements numpy
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ismember

[![Python](https://img.shields.io/pypi/pyversions/ismember)](https://img.shields.io/pypi/pyversions/ismember)
[![PyPI Version](https://img.shields.io/pypi/v/ismember)](https://pypi.org/project/ismember/)
![GitHub Repo stars](https://img.shields.io/github/stars/erdogant/ismember)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/erdogant/ismember/blob/master/LICENSE)
[![Downloads](https://pepy.tech/badge/ismember)](https://pepy.tech/project/ismember)
[![Downloads](https://pepy.tech/badge/ismember/month)](https://pepy.tech/project/ismember/)
[![Sphinx](https://img.shields.io/badge/Sphinx-Docs-Green)](https://erdogant.github.io/ismember/)
<!---[![BuyMeCoffee](https://img.shields.io/badge/buymea-coffee-yellow.svg)](https://www.buymeacoffee.com/erdogant)-->
<!---[![Coffee](https://img.shields.io/badge/coffee-black-grey.svg)](https://erdogant.github.io/donate/?currency=USD&amount=5)-->

``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](https://erdogant.github.io/ismember/)

On the [documentation pages](https://erdogant.github.io/ismember/) you can find more information about ``ismember`` with examples. 

# 

##### Install ismember from PyPI
```bash
pip install ismember     # normal install
pip install -U ismember  # update if needed
```


### Import ismember package
```python
from ismember import ismember
```
<hr>

#### Quick example

Use the documentation pages for more detailed usage. Some of the most used functionalities are linked below.

```python

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](https://erdogant.github.io/ismember/pages/html/Examples.html#)

#

#### [Example: Determine the corresponding location of the values that are present in Y array](https://erdogant.github.io/ismember/pages/html/Examples.html#determine-the-corresponding-location-of-the-values-that-are-present-in-y-array)

#

#### [Example: Row wise comparison](https://erdogant.github.io/ismember/pages/html/Examples.html#row-wise-comparison-1)

#

#### [Example: Elementwise comparison](https://erdogant.github.io/ismember/pages/html/Examples.html#elementwise-comparison)

<hr> 

### References
* https://in.mathworks.com/help/matlab/ref/ismember.html

### Maintainer
* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
* Contributions are welcome.
* If you wish to buy me a <a href="https://www.buymeacoffee.com/erdogant">Coffee</a> for this work, it is very appreciated :)

            

Raw data

            {
    "_id": null,
    "home_page": "https://erdogant.github.io/ismember",
    "name": "ismember",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": null,
    "keywords": null,
    "author": "Erdogan Taskesen",
    "author_email": "erdogant@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/1d/a4/642e7869200adb802a5fc7f655330440fea2a315db720aafe83fd3755fad/ismember-1.0.4.tar.gz",
    "platform": null,
    "description": "# ismember\r\n\r\n[![Python](https://img.shields.io/pypi/pyversions/ismember)](https://img.shields.io/pypi/pyversions/ismember)\r\n[![PyPI Version](https://img.shields.io/pypi/v/ismember)](https://pypi.org/project/ismember/)\r\n![GitHub Repo stars](https://img.shields.io/github/stars/erdogant/ismember)\r\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/erdogant/ismember/blob/master/LICENSE)\r\n[![Downloads](https://pepy.tech/badge/ismember)](https://pepy.tech/project/ismember)\r\n[![Downloads](https://pepy.tech/badge/ismember/month)](https://pepy.tech/project/ismember/)\r\n[![Sphinx](https://img.shields.io/badge/Sphinx-Docs-Green)](https://erdogant.github.io/ismember/)\r\n<!---[![BuyMeCoffee](https://img.shields.io/badge/buymea-coffee-yellow.svg)](https://www.buymeacoffee.com/erdogant)-->\r\n<!---[![Coffee](https://img.shields.io/badge/coffee-black-grey.svg)](https://erdogant.github.io/donate/?currency=USD&amount=5)-->\r\n\r\n``ismember`` is a Python library that checks whether the elements in X is present in Y. \r\n\r\n\r\n# \r\n**\u2b50\ufe0f Star this repo if you like it \u2b50\ufe0f**\r\n# \r\n\r\n\r\n### [Documentation pages](https://erdogant.github.io/ismember/)\r\n\r\nOn the [documentation pages](https://erdogant.github.io/ismember/) you can find more information about ``ismember`` with examples. \r\n\r\n# \r\n\r\n##### Install ismember from PyPI\r\n```bash\r\npip install ismember     # normal install\r\npip install -U ismember  # update if needed\r\n```\r\n\r\n\r\n### Import ismember package\r\n```python\r\nfrom ismember import ismember\r\n```\r\n<hr>\r\n\r\n#### Quick example\r\n\r\nUse the documentation pages for more detailed usage. Some of the most used functionalities are linked below.\r\n\r\n```python\r\n\r\nfrom ismember import ismember\r\n\r\n# Example with lists\r\nI, idx = ismember([1,2,3,None], [4,1,2])\r\nI, idx = ismember([\"1\",\"2\",\"3\"], [\"4\",\"1\",\"2\"])\r\n```\r\n\r\n\r\n#\r\n\r\n#### [Example: Check whether the elements of X are present in Y](https://erdogant.github.io/ismember/pages/html/Examples.html#)\r\n\r\n#\r\n\r\n#### [Example: Determine the corresponding location of the values that are present in Y array](https://erdogant.github.io/ismember/pages/html/Examples.html#determine-the-corresponding-location-of-the-values-that-are-present-in-y-array)\r\n\r\n#\r\n\r\n#### [Example: Row wise comparison](https://erdogant.github.io/ismember/pages/html/Examples.html#row-wise-comparison-1)\r\n\r\n#\r\n\r\n#### [Example: Elementwise comparison](https://erdogant.github.io/ismember/pages/html/Examples.html#elementwise-comparison)\r\n\r\n<hr> \r\n\r\n### References\r\n* https://in.mathworks.com/help/matlab/ref/ismember.html\r\n\r\n### Maintainer\r\n* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)\r\n* Contributions are welcome.\r\n* If you wish to buy me a <a href=\"https://www.buymeacoffee.com/erdogant\">Coffee</a> for this work, it is very appreciated :)\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Python package ismember returns array elements that are members of set array.",
    "version": "1.0.4",
    "project_urls": {
        "Download": "https://github.com/erdogant/ismember/archive/1.0.4.tar.gz",
        "Homepage": "https://erdogant.github.io/ismember"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "75e1459ad956a7423e5f940ed4ef8fc40809aca4de041f63aa538cbfd3770325",
                "md5": "9d06cb858cd63b66a857059886c3f8dc",
                "sha256": "59c248b472485615e23dd8459eec01752dab581c50dc52da3279f4dad440c49c"
            },
            "downloads": -1,
            "filename": "ismember-1.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9d06cb858cd63b66a857059886c3f8dc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3",
            "size": 7684,
            "upload_time": "2024-05-04T08:46:09",
            "upload_time_iso_8601": "2024-05-04T08:46:09.615249Z",
            "url": "https://files.pythonhosted.org/packages/75/e1/459ad956a7423e5f940ed4ef8fc40809aca4de041f63aa538cbfd3770325/ismember-1.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1da4642e7869200adb802a5fc7f655330440fea2a315db720aafe83fd3755fad",
                "md5": "2b6ae3e0e2364122442e1c0e448f2672",
                "sha256": "63ba905ebc602f63dbeecf2f3781554058e87bc3bdcc879f3047e8ab323c7198"
            },
            "downloads": -1,
            "filename": "ismember-1.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "2b6ae3e0e2364122442e1c0e448f2672",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 6873,
            "upload_time": "2024-05-04T08:46:11",
            "upload_time_iso_8601": "2024-05-04T08:46:11.275608Z",
            "url": "https://files.pythonhosted.org/packages/1d/a4/642e7869200adb802a5fc7f655330440fea2a315db720aafe83fd3755fad/ismember-1.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-04 08:46:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "erdogant",
    "github_project": "ismember",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "numpy",
            "specs": []
        }
    ],
    "lcname": "ismember"
}
        
Elapsed time: 0.87905s