pandas-wizard


Namepandas-wizard JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/sharkutilities/pandas-wizard
SummaryUtility Functions, Wrappers for pandas Module
upload_time2024-07-29 18:36:22
maintainerNone
docs_urlNone
authorshark-utilities developers
requires_python>=3.8
licenseMIT License Copyright (c) 2024 Debmalya Pramanik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords pandas utility utilities util utils wrappers data science data analysis data scientist data analyst statistics percentile quantile probability
VCS
bugtrack_url
requirements numpy pandas
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align = "center">
  <img alt = "favicon" src = "favicon.png" height = 250px><br>
  pandas-wizard
</h1>

<div align = "center">

[![Documentation Status](https://readthedocs.org/projects/pandas-wizard/badge/?version=latest)](https://pandas-wizard.readthedocs.io/en/latest/?badge=latest)
[![GitHub Issues](https://img.shields.io/github/issues/sharkutilities/pandas-wizard?style=plastic)](https://github.com/sharkutilities/pandas-wizard/issues)
[![GitHub Forks](https://img.shields.io/github/forks/sharkutilities/pandas-wizard?style=plastic)](https://github.com/sharkutilities/pandas-wizard/network)
[![GitHub Stars](https://img.shields.io/github/stars/sharkutilities/pandas-wizard?style=plastic)](https://github.com/sharkutilities/pandas-wizard/stargazers)
[![LICENSE File](https://img.shields.io/github/license/sharkutilities/pandas-wizard?style=plastic)](https://github.com/sharkutilities/pandas-wizard/blob/master/LICENSE)

</div>

<div align = "justify">

[**Pandas-Wizard (`pandaswizard`)**](https://github.com/sharkutilities/pandas-wizard) is a simple Python module for providing
utility functions and wrappers for the `pandas` module. The module is kept simple and use of external dependencies is minimized
unless needed to enhance performance.

This is a relatively new repository, and if you find any performance or improvement scope please check the
[contributing guidelines](https://github.com/sharkutilities/.github/blob/master/.github/CONTRIBUTING.md) for the organization.
All help and criticism are appreciated. If you find any additional use cases please create a pull request or submit for a
new feature.

## Getting Started

The source code is currently hosted at GitHub: [**sharkutilities/pandas-wizard**](https://github.com/sharkutilities/pandas-wizard).
The binary installers for the latest release are available at the [Python Package Index (PyPI)](https://pypi.org/project/pandas-wizard/).

```bash
pip install -U pandas-wizard
```

The list of changes between each release is available [here](./CHANGELOG.md).

The purpose of the below guide is to illustrate the main features of **pandas-wizard** and assume the working knowledge of
the [`pandas`](https://pypi.org/project/pandas/) module and use cases. The below example calculates the percentile of
`pandas.DataFrameGroupBy` object using [`np.percentile`](https://numpy.org/doc/stable/reference/generated/numpy.percentile.html).

```python
import pandaswizard as pdw # attempt to create an ubiquitous naming

# let's calculate the 50th-percentile, i.e. the median for each group
percentiles = df.groupby("group").agg({"A" : pdw.percentile(50)})
percentiles.head()

# or, preferred usage is to use in conjunture with other aggregation function like
statistics = df.groupby("group").agg({"A" : [sum, pdw.percentile(50), pdw.quantile(0.95)]})
statistics.head()
```

The above function calculates the 50th percentile, i.e., the median of the feature "A" based on the grouped column "group" from the data frame.

---

**Footnote:** The [favicon](./favicon.png) is designed from the original [`pandas`](https://pandas.pydata.org/static/img/pandas.svg) logo and no
copyright infringement is intended. Since the main objective is to provide a utility function for `pandas` the logo is re-used and developed
using [canva](https://www.canva.com/).

</div>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sharkutilities/pandas-wizard",
    "name": "pandas-wizard",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "pandas, utility, utilities, util, utils, wrappers, data science, data analysis, data scientist, data analyst, statistics, percentile, quantile, probability",
    "author": "shark-utilities developers",
    "author_email": "sharkutilities <neuralNOD@outlook.com>",
    "download_url": "https://files.pythonhosted.org/packages/14/4e/21e1d622fcd6a3ea2645a1b71c97dc076dfda82a6a893aef45fc306aa299/pandas-wizard-1.1.0.tar.gz",
    "platform": null,
    "description": "<h1 align = \"center\">\n  <img alt = \"favicon\" src = \"favicon.png\" height = 250px><br>\n  pandas-wizard\n</h1>\n\n<div align = \"center\">\n\n[![Documentation Status](https://readthedocs.org/projects/pandas-wizard/badge/?version=latest)](https://pandas-wizard.readthedocs.io/en/latest/?badge=latest)\n[![GitHub Issues](https://img.shields.io/github/issues/sharkutilities/pandas-wizard?style=plastic)](https://github.com/sharkutilities/pandas-wizard/issues)\n[![GitHub Forks](https://img.shields.io/github/forks/sharkutilities/pandas-wizard?style=plastic)](https://github.com/sharkutilities/pandas-wizard/network)\n[![GitHub Stars](https://img.shields.io/github/stars/sharkutilities/pandas-wizard?style=plastic)](https://github.com/sharkutilities/pandas-wizard/stargazers)\n[![LICENSE File](https://img.shields.io/github/license/sharkutilities/pandas-wizard?style=plastic)](https://github.com/sharkutilities/pandas-wizard/blob/master/LICENSE)\n\n</div>\n\n<div align = \"justify\">\n\n[**Pandas-Wizard (`pandaswizard`)**](https://github.com/sharkutilities/pandas-wizard) is a simple Python module for providing\nutility functions and wrappers for the `pandas` module. The module is kept simple and use of external dependencies is minimized\nunless needed to enhance performance.\n\nThis is a relatively new repository, and if you find any performance or improvement scope please check the\n[contributing guidelines](https://github.com/sharkutilities/.github/blob/master/.github/CONTRIBUTING.md) for the organization.\nAll help and criticism are appreciated. If you find any additional use cases please create a pull request or submit for a\nnew feature.\n\n## Getting Started\n\nThe source code is currently hosted at GitHub: [**sharkutilities/pandas-wizard**](https://github.com/sharkutilities/pandas-wizard).\nThe binary installers for the latest release are available at the [Python Package Index (PyPI)](https://pypi.org/project/pandas-wizard/).\n\n```bash\npip install -U pandas-wizard\n```\n\nThe list of changes between each release is available [here](./CHANGELOG.md).\n\nThe purpose of the below guide is to illustrate the main features of **pandas-wizard** and assume the working knowledge of\nthe [`pandas`](https://pypi.org/project/pandas/) module and use cases. The below example calculates the percentile of\n`pandas.DataFrameGroupBy` object using [`np.percentile`](https://numpy.org/doc/stable/reference/generated/numpy.percentile.html).\n\n```python\nimport pandaswizard as pdw # attempt to create an ubiquitous naming\n\n# let's calculate the 50th-percentile, i.e. the median for each group\npercentiles = df.groupby(\"group\").agg({\"A\" : pdw.percentile(50)})\npercentiles.head()\n\n# or, preferred usage is to use in conjunture with other aggregation function like\nstatistics = df.groupby(\"group\").agg({\"A\" : [sum, pdw.percentile(50), pdw.quantile(0.95)]})\nstatistics.head()\n```\n\nThe above function calculates the 50th percentile, i.e., the median of the feature \"A\" based on the grouped column \"group\" from the data frame.\n\n---\n\n**Footnote:** The [favicon](./favicon.png) is designed from the original [`pandas`](https://pandas.pydata.org/static/img/pandas.svg) logo and no\ncopyright infringement is intended. Since the main objective is to provide a utility function for `pandas` the logo is re-used and developed\nusing [canva](https://www.canva.com/).\n\n</div>\n",
    "bugtrack_url": null,
    "license": "MIT License Copyright (c) 2024 Debmalya Pramanik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Utility Functions, Wrappers for pandas Module",
    "version": "1.1.0",
    "project_urls": {
        "Changelog": "https://github.com/sharkutilities/pandas-wizard/blob/master/CHANGELOG.md",
        "Documentation": "https://pandas-wizard.readthedocs.io/en/latest/index.html",
        "Homepage": "https://github.com/sharkutilities/pandas-wizard",
        "Issues": "https://github.com/sharkutilities/pandas-wizard/issues"
    },
    "split_keywords": [
        "pandas",
        " utility",
        " utilities",
        " util",
        " utils",
        " wrappers",
        " data science",
        " data analysis",
        " data scientist",
        " data analyst",
        " statistics",
        " percentile",
        " quantile",
        " probability"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c14cf62e166906daa3ffadc294d575322a8eadb6d9a5210e5992ae392ce4f991",
                "md5": "f2e151cb0d535860eef572b495da9932",
                "sha256": "a7d403eac8ba54234f2c2d9ba60439a8017a0762b362d79abcf2fc46fe950969"
            },
            "downloads": -1,
            "filename": "pandas_wizard-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f2e151cb0d535860eef572b495da9932",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 14024,
            "upload_time": "2024-07-29T18:36:21",
            "upload_time_iso_8601": "2024-07-29T18:36:21.809600Z",
            "url": "https://files.pythonhosted.org/packages/c1/4c/f62e166906daa3ffadc294d575322a8eadb6d9a5210e5992ae392ce4f991/pandas_wizard-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "144e21e1d622fcd6a3ea2645a1b71c97dc076dfda82a6a893aef45fc306aa299",
                "md5": "e106054310dc1c998e1b5d053c5be609",
                "sha256": "b05285646f7dd8b782854d5c3f55105651276c99029d72826d9c9451b176d987"
            },
            "downloads": -1,
            "filename": "pandas-wizard-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e106054310dc1c998e1b5d053c5be609",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 14622,
            "upload_time": "2024-07-29T18:36:22",
            "upload_time_iso_8601": "2024-07-29T18:36:22.948223Z",
            "url": "https://files.pythonhosted.org/packages/14/4e/21e1d622fcd6a3ea2645a1b71c97dc076dfda82a6a893aef45fc306aa299/pandas-wizard-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-29 18:36:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sharkutilities",
    "github_project": "pandas-wizard",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "numpy",
            "specs": [
                [
                    "==",
                    "1.26.4"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    "==",
                    "2.2.2"
                ]
            ]
        }
    ],
    "lcname": "pandas-wizard"
}
        
Elapsed time: 2.41442s