xarray-einstats
Stats, linear algebra and einops for xarray
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 6 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.2%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Stats, linear algebra and einops for xarray
Basic Info
- Host: GitHub
- Owner: arviz-devs
- License: other
- Language: Python
- Default Branch: main
- Homepage: https://einstats.python.arviz.org
- Size: 6.63 MB
Statistics
- Stars: 67
- Watchers: 12
- Forks: 7
- Open Issues: 2
- Releases: 13
Topics
Metadata Files
README.md
xarray-einstats
Stats, linear algebra and einops for xarray
Installation
To install, run
(.venv) $ pip install xarray-einstats
See the docs for more extensive install instructions.
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 with an api and features adapted to xarray.
Continue at the getting started page.
Contributing
xarray-einstats is in active development and all types of contributions are welcome! See the contributing guide 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 * xarray-extras * xhistogram * xrft
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
- 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>},
}
Owner
- Name: ArviZ
- Login: arviz-devs
- Kind: organization
- Website: https://www.arviz.org
- Twitter: arviz_devs
- Repositories: 31
- Profile: https://github.com/arviz-devs
Citation (CITATION.cff)
cff-version: 1.2.0
title: xarray-einstats
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Oriol
family-names: Abril-Pla
email: oriol.abril.pla@gmail.com
affiliation: Helsinki University
orcid: 'https://orcid.org/0000-0002-1847-9481'
identifiers:
- type: doi
value: 10.5281/zenodo.5895451
description: >-
This is the collection of archived snapshots of
all versions of xarray-einstats
repository-code: 'https://github.com/arviz-devs/xarray-einstats'
url: 'https://xarray-einstats.readthedocs.io'
keywords:
- python
- data science
- statistics
- labeled arrays
license: Apache-2.0
preferred-citation:
type: software
title: xarray-einstats
authors:
- family-names: Abril-Pla
given-names: Oriol
orcid: 'https://orcid.org/0000-0002-1847-9481'
doi: 10.5281/zenodo.5895451
url: 'https://github.com/arviz-devs/xarray-einstats'
year: 2022
publisher: Zenodo
license: Apache-2.0
GitHub Events
Total
- Create event: 3
- Release event: 1
- Issues event: 3
- Watch event: 3
- Delete event: 2
- Issue comment event: 13
- Push event: 5
- Pull request review comment event: 1
- Pull request review event: 3
- Pull request event: 12
- Fork event: 1
Last Year
- Create event: 3
- Release event: 1
- Issues event: 3
- Watch event: 3
- Delete event: 2
- Issue comment event: 13
- Push event: 5
- Pull request review comment event: 1
- Pull request review event: 3
- Pull request event: 12
- Fork event: 1
Committers
Last synced: 8 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Oriol Abril-Pla | o****a@g****m | 83 |
| dependabot[bot] | 4****] | 4 |
| Osvaldo Martin | a****a@g****m | 2 |
| Christine P. Chai | s****p@g****m | 2 |
| Manuel Kaufmann | h****s@g****m | 1 |
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 17
- Total pull requests: 62
- Average time to close issues: 3 months
- Average time to close pull requests: 2 days
- Total issue authors: 9
- Total pull request authors: 5
- Average comments per issue: 1.47
- Average comments per pull request: 1.24
- Merged pull requests: 60
- Bot issues: 0
- Bot pull requests: 6
Past Year
- Issues: 3
- Pull requests: 16
- Average time to close issues: 4 months
- Average time to close pull requests: about 13 hours
- Issue authors: 3
- Pull request authors: 3
- Average comments per issue: 0.67
- Average comments per pull request: 1.0
- Merged pull requests: 14
- Bot issues: 0
- Bot pull requests: 6
Top Authors
Issue Authors
- OriolAbril (6)
- yurivict (4)
- jessegrabowski (1)
- max-sixty (1)
- kochuyt (1)
- m00ngoose (1)
- SomeoneSerge (1)
- bnavigator (1)
- aloctavodia (1)
Pull Request Authors
- OriolAbril (49)
- dependabot[bot] (10)
- star1327p (5)
- aloctavodia (2)
- humitos (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 3
-
Total downloads:
- pypi 1,409,774 last-month
- Total docker downloads: 95,801
-
Total dependent packages: 7
(may contain duplicates) -
Total dependent repositories: 349
(may contain duplicates) - Total versions: 16
- Total maintainers: 1
pypi.org: xarray-einstats
Stats, linear algebra and einops for xarray
- Documentation: https://xarray-einstats.readthedocs.io/
- License: Apache Software License
-
Latest release: 0.9.1
published 8 months ago
Rankings
Maintainers (1)
conda-forge.org: xarray-einstats
- Homepage: https://github.com/arviz-devs/xarray-einstats
- License: Apache-2.0
-
Latest release: 0.3.0
published over 3 years ago
Rankings
anaconda.org: xarray-einstats
xarray-einstats is an open source Python library part of the ArviZ project. It acts as a bridge between the xarray library for labelled arrays and libraries for raw arrays such as NumPy or SciPy.
- Homepage: https://github.com/arviz-devs/xarray-einstats
- License: Apache-2.0
-
Latest release: 0.6.0
published over 2 years ago
Rankings
Dependencies
- actions/checkout v3 composite
- actions/setup-python v4 composite
- pypa/gh-action-pypi-publish release/v1 composite
- readthedocs/actions/preview v1 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- codecov/codecov-action v3 composite
- numpy >=1.21
- scipy >=1.7
- xarray >=2022.09.0