xarray-einstats


Namexarray-einstats JSON
Version 0.7.0 PyPI version JSON
download
home_page
SummaryStats, linear algebra and einops for xarray
upload_time2024-01-17 11:48:24
maintainer
docs_urlNone
author
requires_python>=3.9
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # xarray-einstats

[![Documentation Status](https://readthedocs.org/projects/xarray-einstats/badge/?version=latest)](https://xarray-einstats.readthedocs.io/en/latest/?badge=latest)
[![Run tests](https://github.com/arviz-devs/xarray-einstats/actions/workflows/test.yml/badge.svg)](https://github.com/arviz-devs/xarray-einstats/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/arviz-devs/xarray-einstats/branch/main/graph/badge.svg?token=78K2ZOJCVN)](https://codecov.io/gh/arviz-devs/xarray-einstats)
[![PyPI](https://img.shields.io/pypi/v/xarray-einstats)](https://pypi.org/project/xarray-einstats)
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/xarray-einstats.svg)](https://anaconda.org/conda-forge/xarray-einstats)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5895451.svg)](https://doi.org/10.5281/zenodo.5895451)


Stats, linear algebra and einops for xarray

## Installation

To install, run

```
(.venv) $ pip install xarray-einstats
```

See the docs for more [extensive install instructions](https://einstats.python.arviz.org/en/latest/installation.html).

## Overview
As stated in their website:

> xarray makes working with multi-dimensional labeled arrays simple, efficient and fun!

The code is often more verbose, but it is generally because it is clearer and thus less error prone
and more intuitive.
Here are some examples of such trade-off where we believe the increased clarity is worth
the extra characters:


|  numpy  |  xarray  |
|---------|----------|
| `a[2, 5]` | `da.sel(drug="paracetamol", subject=5)` |
| `a.mean(axis=(0, 1))` | `da.mean(dim=("chain", "draw"))` |
| `a.reshape((-1, 10))`  | `da.stack(sample=("chain", "draw"))` |
| `a.transpose(2, 0, 1)` | `da.transpose("drug", "chain", "draw")` |

In some other cases however, using xarray can result in overly verbose code
that often also becomes less clear. `xarray_einstats` provides wrappers
around some numpy and scipy functions (mostly `numpy.linalg` and `scipy.stats`)
and around [einops](https://einops.rocks/) with an api and features adapted to xarray.
Continue at the [getting started page](https://einstats.python.arviz.org/en/latest/getting_started.html).

## Contributing
xarray-einstats is in active development and all types of contributions are welcome!
See the [contributing guide](https://einstats.python.arviz.org/en/latest/contributing/overview.html) for details on how to contribute.

## Relevant links
* Documentation: https://einstats.python.arviz.org/en/latest/
* Contributing guide: https://einstats.python.arviz.org/en/latest/contributing/overview.html
* ArviZ project website: https://www.arviz.org

## Similar projects
Here we list some similar projects we know of. Note that all of
them are complementary and don't overlap:
* [xr-scipy](https://xr-scipy.readthedocs.io/en/latest/index.html)
* [xarray-extras](https://xarray-extras.readthedocs.io/en/latest/)
* [xhistogram](https://xhistogram.readthedocs.io/en/latest/)
* [xrft](https://xrft.readthedocs.io/en/latest/)

## Cite xarray-einstats
If you use this software, please cite it using the following template and the version
specific DOI provided by Zenodo. Click on the badge to go to the Zenodo page
and select the DOI corresponding to the version you used
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5895451.svg)](https://doi.org/10.5281/zenodo.5895451)

* Oriol Abril-Pla. (2022). arviz-devs/xarray-einstats `<version>`. Zenodo. `<version_doi>`

or in bibtex format:

```none
@software{xarray_einstats2022,
  author       = {Abril-Pla, Oriol},
  title        = {{xarray-einstats}},
  year         = 2022,
  url          = {https://github.com/arviz-devs/xarray-einstats}
  publisher    = {Zenodo},
  version      = {<version>},
  doi          = {<version_doi>},
}
```


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "xarray-einstats",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "",
    "author": "",
    "author_email": "ArviZ team <arviz.devs@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/ff/b7/c6013581f169b220885ce6bd3a5329639d9406c30bd2f5fc3a20fd6deb81/xarray_einstats-0.7.0.tar.gz",
    "platform": null,
    "description": "# xarray-einstats\n\n[![Documentation Status](https://readthedocs.org/projects/xarray-einstats/badge/?version=latest)](https://xarray-einstats.readthedocs.io/en/latest/?badge=latest)\n[![Run tests](https://github.com/arviz-devs/xarray-einstats/actions/workflows/test.yml/badge.svg)](https://github.com/arviz-devs/xarray-einstats/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/arviz-devs/xarray-einstats/branch/main/graph/badge.svg?token=78K2ZOJCVN)](https://codecov.io/gh/arviz-devs/xarray-einstats)\n[![PyPI](https://img.shields.io/pypi/v/xarray-einstats)](https://pypi.org/project/xarray-einstats)\n[![Conda Version](https://img.shields.io/conda/vn/conda-forge/xarray-einstats.svg)](https://anaconda.org/conda-forge/xarray-einstats)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5895451.svg)](https://doi.org/10.5281/zenodo.5895451)\n\n\nStats, linear algebra and einops for xarray\n\n## Installation\n\nTo install, run\n\n```\n(.venv) $ pip install xarray-einstats\n```\n\nSee the docs for more [extensive install instructions](https://einstats.python.arviz.org/en/latest/installation.html).\n\n## Overview\nAs stated in their website:\n\n> xarray makes working with multi-dimensional labeled arrays simple, efficient and fun!\n\nThe code is often more verbose, but it is generally because it is clearer and thus less error prone\nand more intuitive.\nHere are some examples of such trade-off where we believe the increased clarity is worth\nthe extra characters:\n\n\n|  numpy  |  xarray  |\n|---------|----------|\n| `a[2, 5]` | `da.sel(drug=\"paracetamol\", subject=5)` |\n| `a.mean(axis=(0, 1))` | `da.mean(dim=(\"chain\", \"draw\"))` |\n| `a.reshape((-1, 10))`  | `da.stack(sample=(\"chain\", \"draw\"))` |\n| `a.transpose(2, 0, 1)` | `da.transpose(\"drug\", \"chain\", \"draw\")` |\n\nIn some other cases however, using xarray can result in overly verbose code\nthat often also becomes less clear. `xarray_einstats` provides wrappers\naround some numpy and scipy functions (mostly `numpy.linalg` and `scipy.stats`)\nand around [einops](https://einops.rocks/) with an api and features adapted to xarray.\nContinue at the [getting started page](https://einstats.python.arviz.org/en/latest/getting_started.html).\n\n## Contributing\nxarray-einstats is in active development and all types of contributions are welcome!\nSee the [contributing guide](https://einstats.python.arviz.org/en/latest/contributing/overview.html) for details on how to contribute.\n\n## Relevant links\n* Documentation: https://einstats.python.arviz.org/en/latest/\n* Contributing guide: https://einstats.python.arviz.org/en/latest/contributing/overview.html\n* ArviZ project website: https://www.arviz.org\n\n## Similar projects\nHere we list some similar projects we know of. Note that all of\nthem are complementary and don't overlap:\n* [xr-scipy](https://xr-scipy.readthedocs.io/en/latest/index.html)\n* [xarray-extras](https://xarray-extras.readthedocs.io/en/latest/)\n* [xhistogram](https://xhistogram.readthedocs.io/en/latest/)\n* [xrft](https://xrft.readthedocs.io/en/latest/)\n\n## Cite xarray-einstats\nIf you use this software, please cite it using the following template and the version\nspecific DOI provided by Zenodo. Click on the badge to go to the Zenodo page\nand select the DOI corresponding to the version you used\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5895451.svg)](https://doi.org/10.5281/zenodo.5895451)\n\n* Oriol Abril-Pla. (2022). arviz-devs/xarray-einstats `<version>`. Zenodo. `<version_doi>`\n\nor in bibtex format:\n\n```none\n@software{xarray_einstats2022,\n  author       = {Abril-Pla, Oriol},\n  title        = {{xarray-einstats}},\n  year         = 2022,\n  url          = {https://github.com/arviz-devs/xarray-einstats}\n  publisher    = {Zenodo},\n  version      = {<version>},\n  doi          = {<version_doi>},\n}\n```\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Stats, linear algebra and einops for xarray",
    "version": "0.7.0",
    "project_urls": {
        "documentation": "https://xarray-einstats.readthedocs.io",
        "funding": "https://opencollective.com/arviz",
        "source": "https://github.com/arviz-devs/xarray-einstats",
        "tracker": "https://github.com/arviz-devs/xarray-einstats/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4a611471d0738051be02bea0d84350026f01bfea4d9e9df76c560d7d915b3a9f",
                "md5": "0f5f830de804bf51889f14492c9b5161",
                "sha256": "f39403341ebf5b634ab1f1bd0e1bb2dc51046e0df31aa908dfbe2fa6a493712e"
            },
            "downloads": -1,
            "filename": "xarray_einstats-0.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0f5f830de804bf51889f14492c9b5161",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 31705,
            "upload_time": "2024-01-17T11:48:21",
            "upload_time_iso_8601": "2024-01-17T11:48:21.815824Z",
            "url": "https://files.pythonhosted.org/packages/4a/61/1471d0738051be02bea0d84350026f01bfea4d9e9df76c560d7d915b3a9f/xarray_einstats-0.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ffb7c6013581f169b220885ce6bd3a5329639d9406c30bd2f5fc3a20fd6deb81",
                "md5": "5d11b9a53a7397c8ba068de761666c38",
                "sha256": "2d7b571b3bbad3cf2fd10c6c75fd949d247d14c29574184c8489d9d607278d38"
            },
            "downloads": -1,
            "filename": "xarray_einstats-0.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5d11b9a53a7397c8ba068de761666c38",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 29439,
            "upload_time": "2024-01-17T11:48:24",
            "upload_time_iso_8601": "2024-01-17T11:48:24.975622Z",
            "url": "https://files.pythonhosted.org/packages/ff/b7/c6013581f169b220885ce6bd3a5329639d9406c30bd2f5fc3a20fd6deb81/xarray_einstats-0.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-17 11:48:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "arviz-devs",
    "github_project": "xarray-einstats",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "xarray-einstats"
}
        
Elapsed time: 0.16256s