xarray_extras: Advanced algorithms for xarray
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
- csv
Multi-threaded CSV writer, much faster than
pandas.DataFrame.to_csv()
, with full support for dask and dask distributed.- cumulatives
Advanced cumulative sum/productory/mean functions
- interpolate
dask-optimized n-dimensional spline interpolation
- numba_extras
Additions to numba
- sort
Advanced sort/take functions
- stack
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 from python_project_template, which in turn is from xarray.
License
xarray-extras is available under the open source Apache License.