Advanced algorithms for xarray — xarray_extras 0.6.1.dev7+g2fd6faf.d20250305 documentation (original) (raw)
- xarray_extras: Advanced algorithms for xarray
- View page source
This module offers several extensions to xarray, which could not be included into the main module because they fall into one or more of the following categories:
- They’re too experimental
- They’re too niche
- They introduce major new dependencies (e.g.numba or a C compiler)
- They would be better done by doing major rework on multiple packages, and then one would need to wait for said changes to reach a stable release of each package - in the right order.
The API of xarray-extras is unstable by definition, as features will be progressively migrated upwards towards xarray, dask, numpy, pandas, etc.
Features
Multi-threaded CSV writer, much faster thanpandas.DataFrame.to_csv(), with full support fordask anddask distributed.
Advanced cumulative sum/productory/mean functions
dask-optimized n-dimensional spline interpolation
Additions to numba
Advanced sort/take functions
Tools for stacking/unstacking dimensions
Index
Credits
- proper_unstack() was originally developed by Legal & General and released to the open source community in 2018.
- All boilerplate is frompython_project_template, which in turn is from xarray.
License
xarray-extras is available under the open source Apache License.