xarray-einstats
Stats, linear algebra and einops for xarray
Decision gist · record as of 2026-08-14
Yes, if you regularly work with xarray and need NumPy linear algebra or SciPy statistics without losing dimension labels. Low install friction, active maintenance, permissive license, and no known vulnerabilities. Alpha status means the API may evolve, but it's suitable for workflows where clarity and labeled semantics matter more than API stability guarantees.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.12 or later.
- Low friction: pure Python wheel with only three runtime dependencies (numpy, scipy, xarray).
- Last release 25 days ago; repository active with recent commits.
License · maintenance · safety
permissive license (permissive) — Permissive license allows commercial and private use with minimal restrictions.
last release 2026-07-20 (25 days) · last repo commit 2026-08-01 · 68 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,165,943 downloads/mo, #3,235 on PyPI
Alternatives
Verify before relying
pip install xarray-einstats
import xarray as xr
import xarray_einstats
# Use wrapped functions on xarray DataArrays
da = xr.DataArray(...)
result = xarray_einstats.linalg.svd(da)- Whether einops is an optional or required transitive dependency (not listed in runtime deps)
- Scope and maturity of scipy.stats wrapper coverage
- Performance characteristics vs. direct numpy/scipy calls
What it is and what it does
xarray-einstats bridges the gap between xarray's labeled array clarity and NumPy/SciPy's functional depth. When xarray operations become verbose or when you need linear algebra or statistical functions, this package provides thin wrappers that preserve dimension names and coordinate information instead of forcing you back to positional indexing. It wraps numpy.linalg and scipy.stats functions, plus einops tensor operations, with an API designed for xarray's labeled semantics.
The package targets scientific and statistical workflows where you work with multi-dimensional data and want to perform matrix operations or statistical tests without losing your dimension labels. It's in active development (Alpha status) and maintained as part of the ArviZ ecosystem.
Use it for
- Compute matrix decompositions on xarray variables while preserving dimension names
- Apply scipy.stats functions to labeled multi-dimensional arrays without reshaping to NumPy
- Reshape and transpose xarray data using einops syntax adapted for labeled dimensions
- Perform linear algebra on Bayesian posterior samples organized by chain and draw dimensions
- Stack or reshape dimensions in scientific datasets while maintaining coordinate metadata
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you regularly work with xarray and need NumPy linear algebra or SciPy statistics without losing dimension labels.
Low install friction, active maintenance, permissive license, and no known vulnerabilities. Alpha status means the API may evolve, but it's suitable for workflows where clarity and labeled semantics matter more than API stability guarantees.
Install
xarray-einstats on PyPI
Before you install
Low friction: pure Python wheel with only three runtime dependencies (numpy, scipy, xarray). Last release 25 days ago; repository active with recent commits.
Requires Python 3.12 or later.
License in practice
Permissive license allows commercial and private use with minimal restrictions.
Quickstart
pip install xarray-einstats
import xarray as xr
import xarray_einstats
# Use wrapped functions on xarray DataArrays
da = xr.DataArray(...)
result = xarray_einstats.linalg.svd(da)
Verify before relying
- Whether einops is an optional or required transitive dependency (not listed in runtime deps)
- Scope and maturity of scipy.stats wrapper coverage
- Performance characteristics vs. direct numpy/scipy calls
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.12 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesnumpyscipyxarray |
| Maintenance | Actively maintained 25 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,165,943 / month, #3,235 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: xarray_einstats-0.11.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “xarray linear algebra wrappers”
- xarray-einstatsProvides xarray-friendly wrappers around NumPy linear algebra, SciPy…
- eckitlibeckitlib is a Python binding for EcKit, a cross-platform C++ toolkit…
- rasterixRasterix provides tools for analyzing raster data within Xarray…
Give your agent the search over MCP, or paste the wish link into any chat.
More Mathematics packages
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.
Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.
SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.
onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.
Install it if you have ONNX models to run in production or development.
See also xarray · linopy · numpy · einops · scipy · linear-operator · rasterix · arviz-stats · spatial_image · scipy-openblas32