{"id":14989242,"url":"https://github.com/arviz-devs/xarray-einstats","last_synced_at":"2025-04-09T20:08:01.885Z","repository":{"id":37001790,"uuid":"447326384","full_name":"arviz-devs/xarray-einstats","owner":"arviz-devs","description":"Stats, linear algebra and einops for xarray","archived":false,"fork":false,"pushed_at":"2024-11-19T17:49:58.000Z","size":6776,"stargazers_count":64,"open_issues_count":5,"forks_count":6,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-09T20:07:51.524Z","etag":null,"topics":["einsum","linear-algebra","numpy","python","scipy","scipy-stats","xarray","xarray-extension"],"latest_commit_sha":null,"homepage":"https://einstats.python.arviz.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arviz-devs.png","metadata":{"funding":{"custom":"https://numfocus.org/donate-to-arviz"},"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-01-12T18:22:43.000Z","updated_at":"2025-04-02T00:23:52.000Z","dependencies_parsed_at":"2024-04-23T11:20:35.853Z","dependency_job_id":"e08458a7-689c-4c63-80da-6a4b3af48ada","html_url":"https://github.com/arviz-devs/xarray-einstats","commit_stats":{"total_commits":82,"total_committers":3,"mean_commits":"27.333333333333332","dds":0.03658536585365857,"last_synced_commit":"d21153acecb009eca86975e3ac05e6277ab082da"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arviz-devs%2Fxarray-einstats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arviz-devs%2Fxarray-einstats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arviz-devs%2Fxarray-einstats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arviz-devs%2Fxarray-einstats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arviz-devs","download_url":"https://codeload.github.com/arviz-devs/xarray-einstats/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103872,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["einsum","linear-algebra","numpy","python","scipy","scipy-stats","xarray","xarray-extension"],"created_at":"2024-09-24T14:17:55.686Z","updated_at":"2025-04-09T20:08:01.861Z","avatar_url":"https://github.com/arviz-devs.png","language":"Python","readme":"# 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\u003e 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 `\u003cversion\u003e`. Zenodo. `\u003cversion_doi\u003e`\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      = {\u003cversion\u003e},\n  doi          = {\u003cversion_doi\u003e},\n}\n```\n","funding_links":["https://numfocus.org/donate-to-arviz"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farviz-devs%2Fxarray-einstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farviz-devs%2Fxarray-einstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farviz-devs%2Fxarray-einstats/lists"}