pandas-wizard


Namepandas-wizard JSON
Version 1.1.0a0 PyPI version JSON
download
home_pagehttps://github.com/sharkutilities/pandas-wizard
SummaryUtility Functions, Wrappers for pandas Module
upload_time2024-04-21 12:29:48
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 = "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/c2/84/fde46aa380001bb093dc4d8affc4733971e41f61e7ca690dd7b1d66e621a/pandas-wizard-1.1.0a0.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 = \"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.0a0",
    "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": "d19cccff548bb4be3c2b986a90c014252b9522c3bf0d4fbd0c857b078c04fecb",
                "md5": "283c73a158fdd9b32fa3e8332f1e9404",
                "sha256": "b92bdb8fe876a4b68ed57c8245c088a31fc6ff1cf258b7e1973b3e6dfb0508ef"
            },
            "downloads": -1,
            "filename": "pandas_wizard-1.1.0a0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "283c73a158fdd9b32fa3e8332f1e9404",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 9562,
            "upload_time": "2024-04-21T12:29:46",
            "upload_time_iso_8601": "2024-04-21T12:29:46.783784Z",
            "url": "https://files.pythonhosted.org/packages/d1/9c/ccff548bb4be3c2b986a90c014252b9522c3bf0d4fbd0c857b078c04fecb/pandas_wizard-1.1.0a0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c284fde46aa380001bb093dc4d8affc4733971e41f61e7ca690dd7b1d66e621a",
                "md5": "2debb27961d7cf16d1a915b733a14a1f",
                "sha256": "53207b3a3a3753468325b1795b3742cc8c84e26f9f303b5909de717b6d65380c"
            },
            "downloads": -1,
            "filename": "pandas-wizard-1.1.0a0.tar.gz",
            "has_sig": false,
            "md5_digest": "2debb27961d7cf16d1a915b733a14a1f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 10586,
            "upload_time": "2024-04-21T12:29:48",
            "upload_time_iso_8601": "2024-04-21T12:29:48.559365Z",
            "url": "https://files.pythonhosted.org/packages/c2/84/fde46aa380001bb093dc4d8affc4733971e41f61e7ca690dd7b1d66e621a/pandas-wizard-1.1.0a0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-21 12:29:48",
    "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: 0.34688s