Flox

Latest version: v0.9.8

Safety actively analyzes 642295 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 10

0.8.1

0.8.0

What's Changed

Major performance improvements!!!

1. Support [numbagg](https://github.com/numbagg/numbagg) through`engine="numbagg"` for many common nan-skipping reductions in https://github.com/xarray-contrib/flox/pull/72. Using numbagg appears to be a major speedup (2x-3x in general, 6X for nanmean). Special thanks to max-sixty for major work on numbagg's grouped aggregations! Here are timings for reducing a 2D array along the last axis with ordered group labels.
| func | engine | |
|---------|---------|-------------|
| nansum | flox | 70.3±0.2ms |
| | numpy | 122±0.2ms |
| | numbagg | 18.4±0.04ms |
| nanmean | flox | 144±0.4ms |
| | numpy | 196±0.5ms |
| | numbagg | 23.7±0.2ms |
| nanmax | flox | 93.4±0.8ms |
| | numpy | 953±2ms |
| | numbagg | 20.3±0.2ms |
| count | flox | 59.8±1ms |
| | numpy | 114±0.2ms |
| | numbagg | 29.3±0.1ms |

2. Support `engine=None` in https://github.com/xarray-contrib/flox/pull/266. This will
- Use `numbagg` if available
- If not, use flox if the group labels are sorted
- Fallback to numpy otherwise.
Thanks to mathause for kicking off this work.

5. Significant speed to detecting "cohorts" of groups in https://github.com/xarray-contrib/flox/pull/272

Other Major Changes

1. Test and support for python 3.12 (note numba does not support 3.12 yet)
2. Bump minimum numpy version to 1.22.
3. *New Aggregations* : Support `quantile`, `median`, `mode` with `method="blockwise"`. by dcherian in https://github.com/xarray-contrib/flox/pull/269
4. Add [multidimensional bins demo notebook](https://flox.readthedocs.io/en/latest/user-stories/nD-bins.html) by dcherian in https://github.com/xarray-contrib/flox/pull/203 . This is useful for prediction/forecasting problems.

Minor Changes
* Delete resample_reduce by dcherian in https://github.com/xarray-contrib/flox/pull/246
* Fix test failure on i386 by avalentino in https://github.com/xarray-contrib/flox/pull/248
* typing fixes by Illviljan in https://github.com/xarray-contrib/flox/pull/235, https://github.com/xarray-contrib/flox/pull/253
* replace the deprecated `provision-with-micromamba` with `setup-micromamba` by keewis in https://github.com/xarray-contrib/flox/pull/258
* compatibility with `numpy>=2.0` by keewis in https://github.com/xarray-contrib/flox/pull/257
* convert datetime: micro-optimizations by mathause in https://github.com/xarray-contrib/flox/pull/261

New Contributors
* keewis made their first contribution in https://github.com/xarray-contrib/flox/pull/258
* mathause made their first contribution in https://github.com/xarray-contrib/flox/pull/261

**Full Changelog**: https://github.com/xarray-contrib/flox/compare/v0.7.2...v0.8.0

0.7.2

New reductions: `nanfirst`, `nanlast`, `nanargmax`, `nanargmin` .

Please test before using in production

What's Changed
* Support nanfirst, nanlast with simple combine algo by dcherian in https://github.com/xarray-contrib/flox/pull/240
* Enable nanargmax, nanargmin by dcherian in https://github.com/xarray-contrib/flox/pull/171


**Full Changelog**: https://github.com/xarray-contrib/flox/compare/v0.7.1...v0.7.2

0.7.1

What's Changed

Bugfix!

* Check method only for dask reductions. by dcherian in https://github.com/xarray-contrib/flox/pull/241


**Full Changelog**: https://github.com/xarray-contrib/flox/compare/v0.7.0...v0.7.1

0.7.0

What's Changed

Optimizations and performance improvements.

* Always factorize early by dcherian in https://github.com/xarray-contrib/flox/pull/234
* Handle min_count=0 by dcherian in https://github.com/xarray-contrib/flox/pull/238
* Optimize broadcasting by dcherian in https://github.com/xarray-contrib/flox/pull/230

**Full Changelog**: https://github.com/xarray-contrib/flox/compare/v0.6.10...v0.7.0

0.6.10

Small performance improvement.

What's Changed

* Always reindex=True for all numpy inputs by dcherian in https://github.com/xarray-contrib/flox/pull/228


**Full Changelog**: https://github.com/xarray-contrib/flox/compare/v0.6.9...v0.6.10

Page 4 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.