Repository navigation
This release drops support for Python 3.11, raises the minimum versions of some dependencies, completes a few old deprecation cycles, and includes numerous bug fixes and some performance improvements.
This release also adds a :py:func:show_backends function to list available backend engines and adds the ability to only broadcast over specific dimensions in :py:func:apply_ufunc.
Thanks to the 111 contributors to this release:
ANIRUDDHA ADAK, Aayushya Patel, Abderrahmane EL Aoudi, AdriΓ‘n MuΓ±oz Perera, Advit Arora, Ahmet Kamer Γivi, Alan D. Snow, Albert Yau, Alfonso Ladino, Amadeus Brandes, Amir, Andrew Scherer, Anirban Mandal, Aniruddha Adak, Anjali, Anshu Raj Bisoyi, Arham Begani, Aryan R. Ganjoo, Aurantium, Bhaskar Gurram, C1-BA-B1-F3, Carson Jones, Chandan P, Charles Turner, Clay Dugo, Daisy DAI, David Hoese, David Stuebe, Deepak Cherian, Dylan Pulver, Eni, FBumann, Faris Basha TM, Florian Knappers, Francesco Pezzella, Gabriel Demetrios Lafis, Ge Li, Ghanashyam V Narayan, Giacomo Caria, Guillaume Marty, Himanshu Agrawal, Huashuo Lei, Isaac Yong (μ©μ΄μ), Jay, Jeff, Julia Signell, Julien Bloch, Justus Magin, Kai MΓΌhlbauer, Kanishq Gandharv, Kropiunig, Liang Jingyi, Liang, Jingyi, Lim Jooyoung, Luxe7, MJSHANG, Maksymilian Wasilewski, Mathias Hauser, Matt Van Horn, Matthias Schabel, Maximilian Roos, Michael Niklas, Mohansree Vijayakumar, Nic Pittman, Nick Hodgskin, Novain Shibu, Oke Iyanuoluwa Enoch, Oscar Man Shrestha, Pascal Bourgault, Pieter Eendebak, Pranav Somalraju, Prawal Pokharel, Ra1nhy, Ramy Akin Saidi, RoomWithOutRoof, Sai Asish Y, Sainath Singineedi, Senanur Γetin, ShinoKana, Shurong Cao, ShurongCAO, Sivaani J, Soutrik Das, Spencer Clark, Stephan Finkensieper, Taus MΓΈller, Tom Nicholas, Trinh Quoc Anh, Tushar Sharma, Vanshaj Poonia, Wei-Lun Li, Yagnik Trivedi, Yi-111-a, Zackary Loevseth, dolly chahar, glaziermag, hari, imam, imam2004i, nicpittman, nightcityblade, omsatpute61-afk, pereradrian, rutabaga, taus, uvcode01-max, vsaraikin, wayu15244, yi111, zhouziyu-cn and zihao ye
What's Changed
- Fix resource cleanup for copied datasets by @nightcityblade in #11643
- Split backend tests into xarray/tests/backends by @headtr1ck in #11633
- empty whatsnew by @TomNicholas in #11646
- Hold the netCDF-C lock while accessing netCDF4 metadata by @headtr1ck in #11629
- CI: grant
checks: writeto the publish-test-results job by @Yi-111-a in #11597 - Copy scipy mmap data while the file is pinned by @headtr1ck in #11634
- Make the lazy import and default write engine tests independent of test order by @headtr1ck in #11648
- Drop support for Python 3.11 by @headtr1ck in #11649
- Use PEP 695 type parameter syntax by @headtr1ck in #11650
- Add a drop-python-version Claude skill by @headtr1ck in #11654
- Make the docs build more robust by @headtr1ck in #11635
- Fix nightly MultiIndex test failure and new test warnings by @headtr1ck in #11655
- Order combined locks by a lock hierarchy that survives pickling by @headtr1ck in #11645
- Drop a multi-coordinate index whole in Dataset reductions by @matthiasschabel in #11616
- Fix groupby median on dask arrays with non-contiguous groups by @headtr1ck in #11653
- Fix the last-release benchmark workflow by @headtr1ck in #11661
- Skip sortby in interp for coordinates that are already sorted by @bhaskargurram-ai in #11658
- Modernize the generated arithmetic operators and test their types by @headtr1ck in #11657
- DOC: fix backend indexing examples (GH7450) by @Seahzee in #11583
- Fix idxmax/idxmin silently promoting integer label coordinate dtype to float64 (GH#7527) by @CAOShurong in #11544
- DOC fix kwargs parameter name in curvefit docstrings by @advitrocks9 in #11536
- Fix the docs badge in the README and replace the black badge with Ruff by @headtr1ck in #11656
- DOC: document grouping by observed combinations by @omsatpute61-afk in #11671
- Namedarray generic dim type by @headtr1ck in #11223
- docs: Explain encoding via variable attributes by @sfinkens in #11647
- Type array_ufunc of Variable, DataArray and Dataset by @headtr1ck in #11667
- DOC: keep Hypothesis strategy examples readable by @nightcityblade in #11509
- Clarify rename docstrings to not imply a fresh copy (GH9432) by @Emam2006 in #11644
- Fix integer outer indexing of CoordinateTransform coordinates by @dcherian in #11679
- style: add pre-commit CI autofix commit message (PC902) by @Sivaani-Janaswamy in #11324
- Reject negative RangeIndex linspace sizes by @lowgame in #11685
- Fix tests that assume a 64-bit platform by @headtr1ck in #11670
- Forbid forward slashes in DataTree child names by @Yagnik-Trivedi in #11620
- Post the benchmark results as a comment on the PR by @headtr1ck in #11683
- Add inventory aliases for class members at their definition path by @dcherian in #11678
- Reduce noise and warnings in the asv benchmarks by @headtr1ck in #11690
- Speed up the repr of objects with many coordinates by @headtr1ck in #11691
- Fix error when passing skipna to Coarsen reduction methods in latest release by @andrew-s28 in #11686
- Variable generic dim type by @headtr1ck in #11677
- Close files of garbage collected file managers once their lock is free by @headtr1ck in #11692
- Read the magic number of local files unbuffered by @headtr1ck in #11687
- Reshape instead of copying when unstacking a full ordered product by @headtr1ck in #11688
- Fix assign_coords dropping pandas Series index name by @CoderAnirban71 in #11664
- Fix slicing stacked dimensions with tuples by @headtr1ck in #11694
- More rolling and cumulative benchmarks by @headtr1ck in #11698
- Fix skipping missing rolling methods in the benchmarks by @headtr1ck in #11699
- BUG: support JSON-native Zarr fill values by @omsatpute61-afk in #11665
- Remove mention of xarray-mongodb by @TomNicholas in #10186
- fix: defer pd.to_datetime() in test parametrize to avoid nightly segfault by @C1-BA-B1-F3 in #11407
- fix: guard against None version in module_available by @jaythehardcoder in #11379
- Fix VS Code dark mode detection in HTML representation by @maksmondeo in #11284
- Re-enable the nightly version of numcodecs by @headtr1ck in #11695
- Clean up test coverage: omit generators, drop dead dtypes copy, test tutorial offline by @headtr1ck in #11703
- idxmax with multiple dimensions by @gcaria in #10680
- Don't count the padding in the indices of rolling argmin/argmax by @headtr1ck in #11696
- Fix DataTree.load skipping variables whose name matches a group path by @mokashang in #11673
- Convert simple doc pages from rst to MyST markdown by @headtr1ck in #11668
- Loop instead of recursing in Dataset.diff by @headtr1ck in #11704
- Fix pickling regression with scipy backend after multiple opens by @C1-BA-B1-F3 in #11413
- Make Variable generic in its shape and dtype by @headtr1ck in #11693
- Raise a clearer error when open_dataset is given a list of paths by @NoiceHax in #11526
- DOC: fix set_options rendering by documenting defaults explicitly by @dolliecoder in #11156
- Fix Dataset.isin and DataArray.isin when passed a set by @NoiceHax in #11525
- Use asv_runner's decorators to parameterize and skip benchmarks by @headtr1ck in #11709
- BUG: Suppress expected all-NaN warnings in quantile fallback by @senanurcetin in #11714
- Small deprecation cleanups from #11721 by @ShinoKana in #11724
- BUG: Fix Dataset.argmax warning and error messages by @nightcityblade in #11723
- Fix flaky test_zarr_region_chunk_partial_offset by @headtr1ck in #11727
- Refactor Dataset.map to merge attrs instead of copying by @max-sixty in #11020
- Group chunked arrays by chunk manager, not type by @claydugo in #11540
- Bump minimum dependency versions by @headtr1ck in #11728
- Support path-like keys in DataTree.contains by @Yagnik-Trivedi in #11701
- Don't rechunk the windows when counting rolling values with dask by @headtr1ck in #11697
- Remove deprecated Variable.to_variable and to_coord aliases by @Yagnik-Trivedi in #11726
- Remove the no-op enable_cftimeindex option by @ShinoKana in #11729
- Fix test_setitem error message regex for numpy dev by @headtr1ck in #11737
- Benchmark PRs against the base branch they are merged into by @headtr1ck in #11738
- DOC: Corteva -> Vylor by @snowman2 in #11740
- Keep the declared dtype when interpolating dask arrays by @vsaraikin in #11741
- Fix Python 3.14 docs build, build docs with packaging 26.0 by @mwyau in #11585
- TST: require cftime for Dask cftime chunking tests by @Ra1nhy in #11745
- Convert the terminology and contributing pages to MyST markdown by @headtr1ck in #11675
- Fix silent byte-swapping of non-native-endian attribute values in the netcdf4 backend by @glaziermag in #11543
- fix: Don't drop orphaned dims on weighted reductions by @charles-turner-1 in #11562
- Support a single chunk spec in DataTree.chunk by @fredrikblau in #11569
- Fix str accessor methods crashing on object-dtype arrays by @novain-shibu in #11722
- Avoid large intermediate casts in concat with mixed dtypes by @galleonli in #11736
- Pass use_zarr_fill_value_as_mask through open_dataset by @vsaraikin in #11748
- DOC: Explain closing netCDF datasets before overwriting files by @senanurcetin in #11715
- DOC: Execute file-writing examples in temporary notebook directories by @Aurantium-47 in #11711
- Fix inconsistent hue color mapping in plot.line by @Mr-Neutr0n in #11164
- Raise on chunk(chunks=None) by @mohansree14 in #11743
- Pin numpy_groupies<0.14 in the test environments by @headtr1ck in #11751
- DOC: Link windowed operations tutorial from computation guide by @NaNIsaac in #11720
- Rename CLAUDE.md to AGENTS.md and document the flaky CI job by @headtr1ck in #11753
- Fix indexing with 0d non-numpy duck arrays by @tqa236 in #11735
- Fix Zarr fill-value masking options for DataTree reads by @anshurajbisoyi98-ctrl in #11663
- Remove deprecated dt.weekofyear and dt.week accessors by @mohansree14 in #11742
- Make groupby/resample args keyword-only, start groupby_bins deprecation by @mohansree14 in #11744
- nightly conda packages by @keewis in #11760
- fix the nightly conda ci by @keewis in #11762
- Preserve fixed-width string values during encoding by @mvanhorn in #11752
- Remove deprecated meta and output_sizes arguments from apply_ufunc by @ShinoKana in #11755
- Remove the deprecated interpolation argument of quantile by @Yagnik-Trivedi in #11750
- Bug:
case=Falseis not working correctly in the string accessor by @novain-shibu in #11747 - DOC: Add examples for Dataset.drop_duplicates by @senanurcetin in #11713
- nightly conda CI: new channel by @keewis in #11764
- nightly conda: issue template by @keewis in #11765
- Lint docstrings with ruff's pydocstyle rules by @headtr1ck in #11763
- Fix the docstring section order of Dataset.drop_duplicates by @headtr1ck in #11770
- Replace eval-rst blocks in markdown docs with MyST syntax by @headtr1ck in #11754
- Check the style of docstring summaries with ruff by @headtr1ck in #11769
- Separate the tables in the benchmark PR comment by @headtr1ck in #11771
- MAINT: Lower pin Pixi 0.82.1 by @VeckoTheGecko in #11776
- Fix: Chunksize when opening sharded zarr by @taus in #11464
- Check more docstring rules with ruff by @headtr1ck in #11775
- Support iterator keys in Dataset variable selection by @lowgame in #11586
- Import AGENTS.md from CLAUDE.md and use pixi in the agent instructions by @headtr1ck in #11774
- Keep the characters after the length number in char_dim_name by @LemonCondor in #11757
- TST: require pyarrow for DataArray dask-dataframe conversion test by @jdotc1 in #11780
- modernize and debug the nightly wheel CI by @keewis in #11779
- docs: document sort-order behavior of unstack() for pandas-origin MultiIndex by @emfdavid in #11363
- Collect the as_timedelta NotImplementedError test by @dylanpulver in #11783
- Fix concat failure with pandas StringDtype indexes (#11317) by @SAY-5 in #11322
- Add show_backends and print show_versions as markdown by @headtr1ck in #11700
- Use np.strings in the string accessor by @headtr1ck in #11746
- Use h5py.check_string_dtype instead of deprecated h5py.check_dtype by @kmuehlbauer in #11789
- Prefer metadata over store reads in
_decode_cf_datetime_dtypeby @aladinor in #11304 - Fix the time coding docs for pandas 3.1 by @headtr1ck in #11796
- Start emitting deprecation warning for Dataset.to_array (GH11721) by @SoutrikDas in #11788
- support and test python 3.15 by @keewis in #11801
- Fix query on coordinate-only datasets by @LJimmy007 in #11798
- Make dim and spline deprecation warnings visible by @jdotc1 in #11791
- Escalate .apply deprecation to FutureWarning (GH11721) by @Anju522 in #11784
- Document that .item() is not implemented for lazy arrays (#7916) by @Emam2006 in #11659
- Remove the deprecated reset_encoding method by @mohansree14 in #11805
- Remove deprecated
hue_stylefrom 1D plots by @ShinoKana in #11787 - Add missing doc redirects and a CI check for them by @headtr1ck in #11794
- Add an asv benchmark for opening a zarr DataTree with store latency by @headtr1ck in #11810
- Document how interp handles Dask chunks by @headtr1ck in #11786
- Make the zarr DataTree latency benchmark report changes by @headtr1ck in #11812
- skip existing nightly conda uploads without recent commits by @keewis in #11815
- DOC: document optional DataTree backend entrypoints by @senanurcetin in #11806
- Warn on DataTree.ds and set_options(display_expand_groups=...) by @mohansree14 in #11803
- Trigger condition for the nightly conda CI by @keewis in #11816
- Fix unstacking after selecting stacked features by @AryanRG in #11808
- Keep FacetGrid.axes as a plain alias of axs by @pereradrian in #11766
- Fix interp performance regression for vectorized interpolation by @headtr1ck in #11681
- Fix parameter names in the Index.join and get_auto_chunk_size docstrings by @mmporong in #11821
- Add type annotations to open_zarr by @wavebyrd in #11226
- Fix CuPy indexing, assignment and scalar truth conversion by @wpyaoxueros in #11797
- Require
__slots__on third-party subclasses of xarray objects by @ShinoKana in #11818 - DOC: Add a Dataset.reindex_like example by @ZackaryLoevseth in #11792
- add doctest examples for core xarray APIs by @nicpittman in #10953
- DOC: Add the remaining docstring examples from #6793 by @headtr1ck in #11827
- Fix
test_struct_array_dimson pandas nightly: convert structured arrays insafe_cast_to_indexby @glaziermag in #11825 - Fix 'open_dataset' for bytes input and chunks by @djhoese in #11826
- Fix str.zfill putting the zeros before a leading sign by @Kropiunig in #11817
- BUG: support variable-width strings in str.extract by @jdotc1 in #11793
- Fix Windows Zarr directory detection in open_dataset by @galafis in #11802
- Name the data variable in apply_ufunc errors on Datasets by @A2ELAOUDI in #11832
- DOC: Add xdflow to ecosystem page by @julien-bloch in #11839
- Fix "splitted" typo in string accessor docstrings by @Jah-yee in #11846
- Respect drop=True for scalar coordinates an index keeps by @matthiasschabel in #11617
- Use Array API permute_dims instead of transpose in duck_array_ops by @Iyanuoluwa007 in #11859
- Validate col_wrap in plotting methods and FacetGrid by @Iyanuoluwa007 in #11856
- Raise a clear error when reducing a groupby over a missing dimension by @Oscar-man-shrestha in #11863
- Return NaN from dt.decimal_year for NaT by @b84330808 in #11860
- Share read-only HDF5 file handles while datasets are open by @Oscar-man-shrestha in #11809
- Static typing for popular accessors by @jsignell in #11087
- Fix the docs build with sphinx-design 0.8 by @headtr1ck in #11877
- replace warnings.warn with emit_user_level_warning by @mathause in #11870
- lock actions by @keewis in #11875
- nightly errors by @keewis in #11874
- Fix HTML repr of Dataset with non-string dimension names by @Iyanuoluwa007 in #11855
- Collect the list-of-colors cmap ValueError test by @dylanpulver in #11862
- Modernize safe uses of TypeVar/ParamSpec/TypeVarTuple to PEP 695 syntax by @FrancescoPezzella in #11768
- Fix Store tokenization including file manager's random id by @djhoese in #11831
- Fix object array infer string perf 11470 by @JJFlorian in #11484
- Use zarr.Array.async_array with fallback to _async_array by @0xrutabaga in #11684
- Fix apply_ufunc and Dataset arithmetic for a DataArray with a coordinate or attribute named 'keys' by @eendebakpt in #11908
- Fix dead Project Pythia kerchunk cookbook link by @farisbasha in #11904
- Unpin numpy_groupies in the test environments by @headtr1ck in #11897
- Add asv benchmarks for the overhead of operations on small arrays by @eendebakpt in #11909
- PERF: Reduce overhead of
alignfor objects that are already aligned by @eendebakpt in #11910 - DOC: describe multi-index levels as regular coordinates by @RamyAkin in #11888
- Clarify the plotting error for unsupported coordinate types and intervals by @Iyanuoluwa007 in #11891
- Allow non-string names for indexed coordinates by @headtr1ck in #11876
- Fix the last-release benchmark workflow failing on
StringAccessor.time_center('O')by @glaziermag in #11871 - Promote bool and small int dtypes in weighted reductions by @THEpranavsomalraju in #11868
- Mask floating fill values at the stored precision by @Luxe7 in #11824
- Fix negative indices in rolling argmin/argmax at array edges by @ptlnextdoor in #11900
- Add an example to Dataset.combine_first by @ZackaryLoevseth in #11914
- Raise an error when encoding times with units finer than the data resolution by @prawalpokharel in #11907
- Automated choice for coordinate status ambiguity when merging by @aulemahal in #11854
- Preserve Matplotlib grid settings in pcolormesh by @Arham-Begani in #11923
- Fix weighted variance for complex data by @zhouziyu-cn in #11921
- Compute bottleneck's rolling argmin/argmax indices relative to the array by @headtr1ck in #11925
- DOC: Add a Dataset.broadcast_like example by @Himanshuagrawal4 in #11924
- Avoid in-place mutation of scalar coords during groupby binary operations (#11878) by @uvcode01-max in #11880
- Pin python-xxhash<4 in the min-versions environment by @tushar-mahalya in #11939
- Skip nonnumeric variables in Dataset weighted arithmetic by @KanishqGandharv219 in #11833
- Allow format="NETCDF3_64BIT_DATA" in to_netcdf without an engine by @VanshajPoonia in #11917
- fix(indexing): select coarse datetime64 slices beyond ns range (#10975) by @aniruddhaadak80 in #11927
- shave off a few seconds from the pytest collect time by @keewis in #11838
- Return False from module_available when a parent package is missing by @VanshajPoonia in #11944
- Return booleans when comparing with a masked array by @ZackaryLoevseth in #11911
- Fix dimension reconstruction in to_unstacked_dataset by @AMBRA7592 in #11837
- Make DataTree a Dask collection by @sainad2222 in #11852
- Fix Dataset.std and Dataset.var with numbagg for variables without the reduced dimensions by @headtr1ck in #11926
- Fix
test_roundtrip_endianon pandas nightly: convert non-native byte order insafe_cast_to_indexby @glaziermag in #11941 - Normalize Dask datetime units on Variable input by @Oscar-man-shrestha in #11836
- fix(interp): convert datetime coordinates using common unit in _floatize_x by @ghanashyam03 in #11947
- Release v2026.12.0 by @keewis in #11963
New Contributors
- @nightcityblade made their first contribution in #11643
- @Yi-111-a made their first contribution in #11597
- @bhaskargurram-ai made their first contribution in #11658
- @Seahzee made their first contribution in #11583
- @CAOShurong made their first contribution in #11544
- @advitrocks9 made their first contribution in #11536
- @sfinkens made their first contribution in #11647
- @Sivaani-Janaswamy made their first contribution in #11324
- @Yagnik-Trivedi made their first contribution in #11620
- @C1-BA-B1-F3 made their first contribution in #11407
- @jaythehardcoder made their first contribution in #11379
- @maksmondeo made their first contribution in #11284
- @dolliecoder made their first contribution in #11156
- @senanurcetin made their first contribution in #11714
- @ShinoKana made their first contribution in #11724
- @claydugo made their first contribution in #11540
- @vsaraikin made their first contribution in #11741
- @Ra1nhy made their first contribution in #11745
- @glaziermag made their first contribution in #11543
- @fredrikblau made their first contribution in #11569
- @novain-shibu made their first contribution in #11722
- @galleonli made their first contribution in #11736
- @Aurantium-47 made their first contribution in #11711
- @mohansree14 made their first contribution in #11743
- @NaNIsaac made their first contribution in #11720
- @anshurajbisoyi98-ctrl made their first contribution in #11663
- @taus made their first contribution in #11464
- @LemonCondor made their first contribution in #11757
- @jdotc1 made their first contribution in #11780
- @emfdavid made their first contribution in #11363
- @dylanpulver made their first contribution in #11783
- @SAY-5 made their first contribution in #11322
- @SoutrikDas made their first contribution in #11788
- @LJimmy007 made their first contribution in #11798
- @Anju522 made their first contribution in #11784
- @AryanRG made their first contribution in #11808
- @pereradrian made their first contribution in #11766
- @mmporong made their first contribution in #11821
- @wavebyrd made their first contribution in #11226
- @wpyaoxueros made their first contribution in #11797
- @ZackaryLoevseth made their first contribution in #11792
- @nicpittman made their first contribution in #10953
- @galafis made their first contribution in #11802
- @A2ELAOUDI made their first contribution in #11832
- @julien-bloch made their first contribution in #11839
- @Jah-yee made their first contribution in #11846
- @Iyanuoluwa007 made their first contribution in #11859
- @Oscar-man-shrestha made their first contribution in #11863
- @b84330808 made their first contribution in #11860
- @FrancescoPezzella made their first contribution in #11768
- @0xrutabaga made their first contribution in #11684
- @farisbasha made their first contribution in #11904
- @RamyAkin made their first contribution in #11888
- @THEpranavsomalraju made their first contribution in #11868
- @Luxe7 made their first contribution in #11824
- @ptlnextdoor made their first contribution in #11900
- @prawalpokharel made their first contribution in #11907
- @Arham-Begani made their first contribution in #11923
- @zhouziyu-cn made their first contribution in #11921
- @Himanshuagrawal4 made their first contribution in #11924
- @uvcode01-max made their first contribution in #11880
- @tushar-mahalya made their first contribution in #11939
- @KanishqGandharv219 made their first contribution in #11833
- @VanshajPoonia made their first contribution in #11917
- @AMBRA7592 made their first contribution in #11837
- @sainad2222 made their first contribution in #11852
- @ghanashyam03 made their first contribution in #11947
Full Changelog: v2026.09.0...v2026.12.0