Xarray

Latest version: v2024.3.0

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

Scan your dependencies

Page 1 of 16

2024.03.0

What's Changed
* new whats-new section by keewis in https://github.com/pydata/xarray/pull/8767
* [skip-ci] NamedArray: Add lazy indexing array refactoring plan by dcherian in https://github.com/pydata/xarray/pull/8775
* refactor `indexing.py`: introduce `.oindex` for Explicitly Indexed Arrays by andersy005 in https://github.com/pydata/xarray/pull/8750
* Fixing issue 8770: Improved frequency parameter logic to set it to 'D' only if periods, start, or end are None. by rjavierch in https://github.com/pydata/xarray/pull/8774
* Bump the actions group with 2 updates by dependabot in https://github.com/pydata/xarray/pull/8785
* introduce `.vindex` property for Explicitly Indexed Arrays by andersy005 in https://github.com/pydata/xarray/pull/8780
* Migrate treenode module. by flamingbear in https://github.com/pydata/xarray/pull/8757
* Fix non-nanosecond casting behavior for `expand_dims` by spencerkclark in https://github.com/pydata/xarray/pull/8782
* fix: remove Coordinate from __all__ in xarray/__init__.py by hassec in https://github.com/pydata/xarray/pull/8791
* tokenize() should ignore difference between None and {} attrs by crusaderky in https://github.com/pydata/xarray/pull/8797
* Bump the actions group with 2 updates by dependabot in https://github.com/pydata/xarray/pull/8804
* Grouper object design doc by dcherian in https://github.com/pydata/xarray/pull/8510
* Refactor Grouper objects by dcherian in https://github.com/pydata/xarray/pull/8776
* DOC: link to zarr.convenience.consolidate_metadata by raybellwaves in https://github.com/pydata/xarray/pull/8816
* Update documentation for clarity by staadecker in https://github.com/pydata/xarray/pull/8817
* Bump the actions group with 1 update by dependabot in https://github.com/pydata/xarray/pull/8818
* try to get the `upstream-dev` CI to complete again by keewis in https://github.com/pydata/xarray/pull/8823
* Do not attempt to broadcast when global option ``arithmetic_broadcast=False`` by etienneschalk in https://github.com/pydata/xarray/pull/8784
* Make list_chunkmanagers more resilient to broken entrypoints by hmaarrfk in https://github.com/pydata/xarray/pull/8736
* Add `dask-expr` to environment-3.12.yml by dcherian in https://github.com/pydata/xarray/pull/8827
* [skip-ci] Add dask-expr dependency to doc.yml by andersy005 in https://github.com/pydata/xarray/pull/8835
* Add dask-expr for windows envs by dcherian in https://github.com/pydata/xarray/pull/8837
* [skip-ci] Fix upstream-dev env by dcherian in https://github.com/pydata/xarray/pull/8839
* Return a dataclass from Grouper.factorize by dcherian in https://github.com/pydata/xarray/pull/8777
* Expand use of `.oindex` and `.vindex` by andersy005 in https://github.com/pydata/xarray/pull/8790
* correctly encode/decode _FillValues/missing_values/dtypes for packed data by kmuehlbauer in https://github.com/pydata/xarray/pull/8713
* Support pandas copy-on-write behaviour by dcherian in https://github.com/pydata/xarray/pull/8846
* Implement setitem syntax for `.oindex` and `.vindex` properties by andersy005 in https://github.com/pydata/xarray/pull/8845
* FIX: do not cast _FillValue/missing_value in CFMaskCoder if _Unsigned is provided by kmuehlbauer in https://github.com/pydata/xarray/pull/8852
* FIX: adapt handling of copy keyword argument in scipy backend for numpy >= 2.0dev by kmuehlbauer in https://github.com/pydata/xarray/pull/8851
* pandas 3 MultiIndex fixes by dcherian in https://github.com/pydata/xarray/pull/8847
* increase typing annotations coverage in `xarray/core/indexing.py` by andersy005 in https://github.com/pydata/xarray/pull/8857
* upstream-dev CI: Fix interp and cumtrapz by dcherian in https://github.com/pydata/xarray/pull/8861
* numpy 2.0 copy-keyword and trapz vs trapezoid by kmuehlbauer in https://github.com/pydata/xarray/pull/8865
* Handle .oindex and .vindex for the PandasMultiIndexingAdapter and PandasIndexingAdapter by andersy005 in https://github.com/pydata/xarray/pull/8869
* Update docs on view / copies by ks905383 in https://github.com/pydata/xarray/pull/8744
* Opt out of auto creating index variables by TomNicholas in https://github.com/pydata/xarray/pull/8711
* groupby: Dispatch quantile to flox. by dcherian in https://github.com/pydata/xarray/pull/8720
* warn and return bytes undecoded in case of UnicodeDecodeError in h5netcdf-backend by kmuehlbauer in https://github.com/pydata/xarray/pull/8874
* Migrate datatree.py module into xarray.core. by owenlittlejohns in https://github.com/pydata/xarray/pull/8789
* Don't allow overwriting indexes with region writes by dcherian in https://github.com/pydata/xarray/pull/8877
* Allow multidimensional variable with same name as dim when constructing dataset via coords by TomNicholas in https://github.com/pydata/xarray/pull/8886
* Optimize writes to existing Zarr stores. by dcherian in https://github.com/pydata/xarray/pull/8875
* Add dt.date to plottable types by saschahofmann in https://github.com/pydata/xarray/pull/8873
* Check for aligned chunks when writing to existing variables by max-sixty in https://github.com/pydata/xarray/pull/8459
* Avoid in-place multiplication of a large value to an array with small integer dtype by Illviljan in https://github.com/pydata/xarray/pull/8867
* Add typing to test_groupby.py by Illviljan in https://github.com/pydata/xarray/pull/8890
* 2024.03.0: Add whats-new by dcherian in https://github.com/pydata/xarray/pull/8891

New Contributors
* rjavierch made their first contribution in https://github.com/pydata/xarray/pull/8774
* hassec made their first contribution in https://github.com/pydata/xarray/pull/8791
* staadecker made their first contribution in https://github.com/pydata/xarray/pull/8817
* ks905383 made their first contribution in https://github.com/pydata/xarray/pull/8744
* owenlittlejohns made their first contribution in https://github.com/pydata/xarray/pull/8789
* saschahofmann made their first contribution in https://github.com/pydata/xarray/pull/8873

**Full Changelog**: https://github.com/pydata/xarray/compare/v2024.02.0...v2024.03.0

2024.02.0

This release brings size information to the text `repr`, changes to the accepted frequency strings, and various bug fixes.

Thanks to our 12 contributors:

Anderson Banihirwe, Deepak Cherian, Eivind Jahren, Etienne Schalk, Justus Magin, Marco Wolsza, Mathias Hauser, Matt Savoie, Maximilian Roos, Rambaud Pierrick, Tom Nicholas

2024.01.1

This release is to fix a bug with the rendering of the documentation, but it also includes changes to the handling of pandas frequency strings.

What's Changed
* Re-enable mypy checks for parse_dims unit tests by crusaderky in https://github.com/pydata/xarray/pull/8618
* import from the new location of `normalize_axis_index` if possible by keewis in https://github.com/pydata/xarray/pull/8483
* Update min deps in docs by jhamman in https://github.com/pydata/xarray/pull/8622
* Fix GH212, PP308 by tqa236 in https://github.com/pydata/xarray/pull/8621
* Partially fix doctests by max-sixty in https://github.com/pydata/xarray/pull/8631
* Fix building doc following depreciation in Pandas 2.2.0 by nameloCmaS in https://github.com/pydata/xarray/pull/8633
* Workaround broken test from pyarrow by max-sixty in https://github.com/pydata/xarray/pull/8634
* xfail pyarrow test by max-sixty in https://github.com/pydata/xarray/pull/8635
* Don't show stdlib paths for `user_level_warnings` by max-sixty in https://github.com/pydata/xarray/pull/8625
* xfail another dask/pyarrow test by max-sixty in https://github.com/pydata/xarray/pull/8636
* xfail a cftime test by max-sixty in https://github.com/pydata/xarray/pull/8637
* Silence deprecation warning from `.dims` in tests by max-sixty in https://github.com/pydata/xarray/pull/8639
* Use `T_DataArray` in `Weighted` by max-sixty in https://github.com/pydata/xarray/pull/8630
* rename "Y" freq string to "YE" (pandas parity) by mathause in https://github.com/pydata/xarray/pull/8629
* Pandas 2.2.0 test fixes by nameloCmaS in https://github.com/pydata/xarray/pull/8638
* xfail zarr test on Windows by max-sixty in https://github.com/pydata/xarray/pull/8643
* Use ddof in `numbagg>=0.7.0` for aggregations by max-sixty in https://github.com/pydata/xarray/pull/8624
* infer_freq: return 'YE' (8629 follow-up) by mathause in https://github.com/pydata/xarray/pull/8642
* Pin sphinx-book-theme to 1.0.1 to try to deal with 8619 by TomNicholas in https://github.com/pydata/xarray/pull/8632
* Fixed typo in custom backend registration documentation by HertugHelms in https://github.com/pydata/xarray/pull/8645
* implement `isnull` using `full_like` instead of `zeros_like` by keewis in https://github.com/pydata/xarray/pull/7395

New Contributors
* nameloCmaS made their first contribution in https://github.com/pydata/xarray/pull/8633
* HertugHelms made their first contribution in https://github.com/pydata/xarray/pull/8645

**Full Changelog**: https://github.com/pydata/xarray/compare/v2024.01.0...v2024.01.1

2024.01.0

This release brings support for weights in correlation and covariance functions,
a new `DataArray.cumulative` aggregation, improvements to `xr.map_blocks`,
an update to our minimum dependencies, and various bugfixes.

Thanks to our 17 contributors to this release:

Abel Aoun, Deepak Cherian, Illviljan, Johan Mathe, Justus Magin, Kai Mühlbauer,
Llorenç Lledó, Mark Harfouche, Markel, Mathias Hauser, Maximilian Roos, Michael Niklas,
Niclas Rieger, Sébastien Celles, Tom Nicholas, Trinh Quoc Anh, and crusaderky.

2023.12.0

This release brings new [hypothesis](https://hypothesis.works) strategies for testing, significantly faster rolling aggregations as well as ``ffill`` and ``bfill`` with [numbagg](https://github.com/numbagg/numbagg/), a new `Dataset.eval` method, and improvements to reading and writing Zarr arrays (including a new `"a-"` mode).

Thanks to our 16 contributors:

Anderson Banihirwe, Ben Mares, Carl Andersson, Deepak Cherian, Doug Latornell, Gregorio L. Trevisan, Illviljan, Jens Hedegaard Nielsen, Justus Magin, Mathias Hauser, Max Jones, Maximilian Roos, Michael Niklas, Patrick Hoefler, Ryan Abernathey, Tom Nicholas


What's Changed
* [skip-ci] dev whats-new by dcherian in https://github.com/pydata/xarray/pull/8467
* Consolidate `_get_alpha` func by max-sixty in https://github.com/pydata/xarray/pull/8465
* Fix `map_blocks` docs' formatting by max-sixty in https://github.com/pydata/xarray/pull/8464
* Use concise date format when plotting by Illviljan in https://github.com/pydata/xarray/pull/8449
* Fix mypy tests by max-sixty in https://github.com/pydata/xarray/pull/8476
* Allow `rank` to run on dask arrays by max-sixty in https://github.com/pydata/xarray/pull/8475
* Add whatsnew for 8475 by max-sixty in https://github.com/pydata/xarray/pull/8478
* Improve "variable not found" error message by max-sixty in https://github.com/pydata/xarray/pull/8474
* Fix bug for categorical pandas index with categories with EA dtype by phofl in https://github.com/pydata/xarray/pull/8481
* Use numbagg for `ffill` by default by max-sixty in https://github.com/pydata/xarray/pull/8389
* Refine rolling_exp error messages by max-sixty in https://github.com/pydata/xarray/pull/8485
* Fix Zarr region transpose by max-sixty in https://github.com/pydata/xarray/pull/8484
* Reduce redundancy between namedarray and variable tests by maxrjones in https://github.com/pydata/xarray/pull/8405
* Start renaming `dims` to `dim` by max-sixty in https://github.com/pydata/xarray/pull/8487
* Raise an informative error message when object array has mixed types by andersy005 in https://github.com/pydata/xarray/pull/4700
* Update resample time offset FutureWarning and docs by douglatornell in https://github.com/pydata/xarray/pull/8479
* Fix minor typo in io.rst by maresb in https://github.com/pydata/xarray/pull/8492
* Warn on repeated dimension names during construction by TomNicholas in https://github.com/pydata/xarray/pull/8491
* Minor to_zarr optimizations by dcherian in https://github.com/pydata/xarray/pull/8489
* Properly closes zarr groups in zarr store by CarlAndersson in https://github.com/pydata/xarray/pull/8425
* Avoid duplicate Zarr array read by dcherian in https://github.com/pydata/xarray/pull/8472
* Add mode='a-': Do not overwrite coordinates when appending to Zarr with `append_dim` by rabernat in https://github.com/pydata/xarray/pull/8428
* Add expand_dims by Illviljan in https://github.com/pydata/xarray/pull/8407
* Update to mypy1.7 by headtr1ck in https://github.com/pydata/xarray/pull/8501
* change type of curvefit's p0 and bounds to mapping by headtr1ck in https://github.com/pydata/xarray/pull/8502
* Fully deprecate `.drop` by max-sixty in https://github.com/pydata/xarray/pull/8497
* Fix docstrings for `combine_by_coords` by gtrevisan in https://github.com/pydata/xarray/pull/8471
* roll out the new/refreshed Xarray logo by andersy005 in https://github.com/pydata/xarray/pull/8505
* Add extra overload for to_netcdf by jenshnielsen in https://github.com/pydata/xarray/pull/8268
* Allow callables to `.drop_vars` by max-sixty in https://github.com/pydata/xarray/pull/8511
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/pydata/xarray/pull/8517
* Fix type of `.assign_coords` by max-sixty in https://github.com/pydata/xarray/pull/8495
* [skip-ci] fix RTD docs build by andersy005 in https://github.com/pydata/xarray/pull/8519
* Bump pypa/gh-action-pypi-publish from 1.8.10 to 1.8.11 by dependabot in https://github.com/pydata/xarray/pull/8514
* Use numbagg for `rolling` methods by max-sixty in https://github.com/pydata/xarray/pull/8493
* Hypothesis strategy for generating Variable objects by TomNicholas in https://github.com/pydata/xarray/pull/8404
* Remove PR labeler bot by TomNicholas in https://github.com/pydata/xarray/pull/8525
* test and fix empty xindexes repr by mathause in https://github.com/pydata/xarray/pull/8521
* Deprecate ds.dims returning dict by TomNicholas in https://github.com/pydata/xarray/pull/8500
* Add `eval` method to Dataset by max-sixty in https://github.com/pydata/xarray/pull/7163
* explicitly skip using `__array_namespace__` for `numpy.ndarray` by keewis in https://github.com/pydata/xarray/pull/8526
* Whats-new for 2023.12.0 by dcherian in https://github.com/pydata/xarray/pull/8532

New Contributors
* CarlAndersson made their first contribution in https://github.com/pydata/xarray/pull/8425

**Full Changelog**: https://github.com/pydata/xarray/compare/v2023.11.0...v2023.12.0

2023.11.0

> [!NOTE]
> [This is our 10th year anniversary release!](https://github.com/pydata/xarray/discussions/8462) Thank you for your love and support.


This release brings the ability to use ``opt_einsum`` for :py:func:`xarray.dot` by default,
support for auto-detecting ``region`` when writing partial datasets to Zarr, and the use of h5py
drivers with ``h5netcdf``.

Thanks to the 19 contributors to this release:
Aman Bagrecha, Anderson Banihirwe, Ben Mares, Deepak Cherian, Dimitri Papadopoulos Orfanos, Ezequiel Cimadevilla Alvarez,
Illviljan, Justus Magin, Katelyn FitzGerald, Kai Muehlbauer, Martin Durant, Maximilian Roos, Metamess, Sam Levang, Spencer Clark, Tom Nicholas, mgunyho, templiert

What's Changed
* [skip-ci] dev whats-new by dcherian in https://github.com/pydata/xarray/pull/8349
* [skip-ci] Add benchmarks for Dataset binary ops, chunk by dcherian in https://github.com/pydata/xarray/pull/8351
* Add better ASV test cases for open_dataset by Illviljan in https://github.com/pydata/xarray/pull/8352
* Reduce dask tokenization time by martindurant in https://github.com/pydata/xarray/pull/8339
* Deprecate tuples of chunks? by max-sixty in https://github.com/pydata/xarray/pull/8341
* Remove unnecessary for loop when using get_axis_num by Illviljan in https://github.com/pydata/xarray/pull/8356
* Use namedarray repr in _array_api docstrings by Illviljan in https://github.com/pydata/xarray/pull/8355
* NamedArray.ndim can only be int by Illviljan in https://github.com/pydata/xarray/pull/8362
* docs: add searchable word "asterisk" by templiert in https://github.com/pydata/xarray/pull/8363
* add `.imag` and `.real` properties to `NamedArray` by andersy005 in https://github.com/pydata/xarray/pull/8365
* fix `NamedArray.imag` and `NamedArray.real` typing info by andersy005 in https://github.com/pydata/xarray/pull/8369
* Add chunkedduckarray to _typing by Illviljan in https://github.com/pydata/xarray/pull/8376
* Do not intercept left/right keys in HTML docs by DimitriPapadopoulos in https://github.com/pydata/xarray/pull/8379
* Docs page on interoperability by TomNicholas in https://github.com/pydata/xarray/pull/7992
* Fix typos found by codespell by DimitriPapadopoulos in https://github.com/pydata/xarray/pull/8375
* Use `opt_einsum` by default if installed. by dcherian in https://github.com/pydata/xarray/pull/8373
* Allow Variable type as dim argument to concat by maresb in https://github.com/pydata/xarray/pull/8384
* Remove duplicated navigation_with_keys in docs config by Illviljan in https://github.com/pydata/xarray/pull/8390
* Add duckarray test for np.array_api by Illviljan in https://github.com/pydata/xarray/pull/8391
* Fix sparse typing by Illviljan in https://github.com/pydata/xarray/pull/8387
* Correct typing for _sparsearray by Illviljan in https://github.com/pydata/xarray/pull/8395
* Port fix from pandas-dev/pandas55283 to cftime resample by spencerkclark in https://github.com/pydata/xarray/pull/8393
* Fix for Dataset.to_zarr with both `consolidated` and `write_empty_chunks` by Metamess in https://github.com/pydata/xarray/pull/8326
* Test masked array by Illviljan in https://github.com/pydata/xarray/pull/8396
* Better attr diff for `testing.assert_identical` by dcherian in https://github.com/pydata/xarray/pull/8400
* Add cross-links to API docstring from tutorial and user-guide by amanbagrecha in https://github.com/pydata/xarray/pull/8311
* [pre-commit.ci] pre-commit autoupdate by pre-commit-ci in https://github.com/pydata/xarray/pull/8418
* Fix for date offset strings with resample loffset by kafitzgerald in https://github.com/pydata/xarray/pull/8422
* Declare Dataset, DataArray, Variable, GroupBy unhashable by maresb in https://github.com/pydata/xarray/pull/8392
* Add missing DataArray.dt.total_seconds() method by maresb in https://github.com/pydata/xarray/pull/8435
* Rename `to_array` to `to_dataarray` by max-sixty in https://github.com/pydata/xarray/pull/8438
* Remove keep_attrs from resample signature by dcherian in https://github.com/pydata/xarray/pull/8444
* Pin pint to >=0.22 by dcherian in https://github.com/pydata/xarray/pull/8445
* Remove PseudoNetCDF by dcherian in https://github.com/pydata/xarray/pull/8446
* remove `cdms2` by keewis in https://github.com/pydata/xarray/pull/8441
* Automatic region detection and transpose for `to_zarr()` by slevang in https://github.com/pydata/xarray/pull/8434
* Raise exception in to_dataset if resulting variable is also the name of a coordinate by mgunyho in https://github.com/pydata/xarray/pull/8433
* Added driver parameter for h5netcdf by zequihg50 in https://github.com/pydata/xarray/pull/8360
* Deprecate certain cftime frequency strings following pandas by spencerkclark in https://github.com/pydata/xarray/pull/8415
* [skip-ci] Small updates to IO docs. by dcherian in https://github.com/pydata/xarray/pull/8452
* Fix typos found by codespell by DimitriPapadopoulos in https://github.com/pydata/xarray/pull/8457
* Pin mypy < 1.7 by dcherian in https://github.com/pydata/xarray/pull/8458
* preserve vlen string dtypes, allow vlen string fill_values by kmuehlbauer in https://github.com/pydata/xarray/pull/7869
* migrate the other CI to python 3.11 by keewis in https://github.com/pydata/xarray/pull/8416
* 2023.11.0 Whats-new by dcherian in https://github.com/pydata/xarray/pull/8461

New Contributors
* maresb made their first contribution in https://github.com/pydata/xarray/pull/8384
* Metamess made their first contribution in https://github.com/pydata/xarray/pull/8326
* amanbagrecha made their first contribution in https://github.com/pydata/xarray/pull/8311
* kafitzgerald made their first contribution in https://github.com/pydata/xarray/pull/8422
* zequihg50 made their first contribution in https://github.com/pydata/xarray/pull/8360

**Full Changelog**: https://github.com/pydata/xarray/compare/v2023.10.1...v2023.11.0

Page 1 of 16

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.