xarray breaking changes
Updated December 4, 2026
On this page
Latest version 2026.12.0, released December 3, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
- From 2025.1.0 to 2026.1.0: 30 breaking changes in 1 version.
- From 0.21.0 to 2026.1.0: 155 breaking changes in 5 versions.
xarray 2026.1.0 breaking changes
- Removed
xarray.core.dataset.T_DataArray
xarray.core.dataset.T_DataArray was removed in xarray 2026.1.0 pypi.org - Removed
xarray.core.formatting_html.datatree_node_sections
xarray.core.formatting_html.datatree_node_sections was removed in xarray 2026.1.0 pypi.org - Removed
xarray.core.formatting_html.summarize_datatree_children
xarray.core.formatting_html.summarize_datatree_children was removed in xarray 2026.1.0 pypi.org - Removed
xarray.tests.test_backends.has_h5netcdf_1_4_0_or_above
xarray.tests.test_backends.has_h5netcdf_1_4_0_or_above was removed in xarray 2026.1.0 pypi.org - Removed
xarray.tests.test_backends.requires_h5netcdf_1_4_0_or_above
xarray.tests.test_backends.requires_h5netcdf_1_4_0_or_above was removed in xarray 2026.1.0 pypi.org - Removed
xarray.tests.test_backends.TestH5NetCDFData.test_complex
TestH5NetCDFData.test_complex was removed in xarray 2026.1.0 pypi.org - Removed
xarray.tests.test_backends.TestH5NetCDFData.test_complex_error
TestH5NetCDFData.test_complex_error was removed in xarray 2026.1.0 pypi.org - Removed
xarray.tests.test_dataset.test_eval
xarray.tests.test_dataset.test_eval was removed in xarray 2026.1.0 pypi.org - Behavior changed
pd.StringDtype data is now coerced to np.dtypes.StringDType. Code that checks or depends on the pandas dtype may see a different dtype. github.com - Behavior changed
Reading zarr string variables now produces StringDType arrays instead of the previous dtype. Code relying on the old dtype may behave differently. github.com - Behavior changed
Xarray now creates xindex automatically. Code that expects no index on these coordinates may see different results. github.com - Behavior changed
open_zarr
The special mapping of auto to {} was removed from open_zarr. Code that passes chunks='auto' may now get different chunking. github.com - Behavior changed
xr.where
The keep_attrs handling in xr.where changed when x is a scalar. Check code that relies on attributes being kept or dropped in that case. github.com - Configuration changed
The minimum supported h5netcdf version is now 1.4.0. Environments with older h5netcdf must upgrade it. github.com - Signature changed
xarray.backends.DummyFileManager.__init__
Was def __init__(self, value: T_File, *, close: Callable[[], None] | None = None); now def __init__(self, value: T_File, *, close: Callable[[], None] | None = None, lock: Lock | None | Literal[False] = None). pypi.org - Signature changed
xarray.backends.file_manager.PickleableFileManager.__init__
Was def __init__(self, opener: Callable[..., T_File], *args: Any, mode: Any = _OMIT_MODE, kwargs: Mapping[str, Any] | None = None); now def __init__(self, opener: Callable[..., T_File], *args: Any, mode: Any = _OMIT_MODE, lock: Lock | None... pypi.org - Signature changed
xarray.computation.apply_ufunc.merge_coordinates_without_align
Was def merge_coordinates_without_align(objects: list[Coordinates], prioritized: Mapping[Any, MergeElement] | None = None, exclude_dims: AbstractSet = frozenset(), combine_attrs: CombineAttrsOptions = 'override') -> tuple[dict[Hashable... pypi.org - Signature changed
xarray.Coordinates.merge
Was def merge(self, other: Mapping[Any, Any] | None) -> Dataset; now def merge(self, other: Mapping[Any, Any] | None, *, compat: CompatOptions | CombineKwargDefault = 'minimal') -> Dataset. pypi.org - Signature changed
xarray.core.coordinates.merge_coordinates_without_align
Was def merge_coordinates_without_align(objects: list[Coordinates], prioritized: Mapping[Any, MergeElement] | None = None, exclude_dims: AbstractSet = frozenset(), combine_attrs: CombineAttrsOptions = 'override') -> tuple[dict[Hashable... pypi.org - Signature changed
xarray.core.dataset.merge_coordinates_without_align
Was def merge_coordinates_without_align(objects: list[Coordinates], prioritized: Mapping[Any, MergeElement] | None = None, exclude_dims: AbstractSet = frozenset(), combine_attrs: CombineAttrsOptions = 'override') -> tuple[dict[Hashable... pypi.org - Signature changed
xarray.core.formatting_html.children_section
Was children_section; now def children_section(children: Mapping[str, DataTree], displays: dict[str, _DataTreeDisplay]) -> str. pypi.org - Signature changed
xarray.core.formatting_html.collapsible_section
Was def collapsible_section(name, inline_details='', details='', n_items=None, enabled=True, collapsed=False) -> str; now def collapsible_section(header: str, inline_details='', details='', n_items=None, enabled=True, collapsed=False... pypi.org - Signature changed
xarray.core.formatting_html.datatree_child_repr
Was def datatree_child_repr(node: DataTree, end: bool = False) -> str; now def datatree_child_repr(node: DataTree, displays: dict[str, _DataTreeDisplay], end: bool) -> str. pypi.org - Signature changed
xarray.Dataset.eval
Was def eval(self, statement: str, *, parser: QueryParserOptions = 'pandas') -> Self | T_DataArray; now def eval(self, statement: str, *, parser: QueryParserOptions | Default = _default) -> Self | DataArray. pypi.org - Signature changed
xarray.indexes.range_index.RangeCoordinateTransform.equals
Was def equals(self, other: CoordinateTransform, exclude: frozenset[Hashable] | None = None) -> bool; now def equals(self, other: CoordinateTransform, exclude: frozenset[Hashable] | None = None, *, exact: bool = False) -> bool. pypi.org - Signature changed
xarray.indexes.RangeIndex.equals
Was def equals(self, other: Index, *, exclude: frozenset[Hashable] | None = None) -> bool; now def equals(self, other: Index, *, exclude: frozenset[Hashable] | None = None, exact: bool = False) -> bool. pypi.org - Signature changed
xarray.open_zarr
Was def open_zarr(store, group=None, synchronizer=None, chunks='auto', decode_cf=True, mask_and_scale=True, decode_times=True, concat_characters=True, decode_coords=True, drop_variables=None, consolidated=None... pypi.org - Signature changed
xarray.structure.merge.merge_coordinates_without_align
Was def merge_coordinates_without_align(objects: list[Coordinates], prioritized: Mapping[Any, MergeElement] | None = None, exclude_dims: AbstractSet = frozenset(), combine_attrs: CombineAttrsOptions = 'override') -> tuple[dict[Hashable... pypi.org - Signature changed
xarray.tests.assert_identical
Was def assert_identical(a, b, check_default_indexes=True); now def assert_identical(a, b, check_default_indexes=True, check_indexes=None). pypi.org - Signature changed
xarray.tests.test_ufuncs.assert_identical_
Was def assert_identical(a, b, check_default_indexes=True); now def assert_identical(a, b, check_default_indexes=True, check_indexes=None). pypi.org
xarray 2025.1.0 breaking changes
- Removed
The deprecated handling of non-dimension positional arguments was removed, so code relying on it must pass those arguments by keyword. github.com - Removed
closed
The deprecation of the "closed" parameter was finalized, so code passing it will no longer work and should drop it. github.com - Removed
xarray.coding.cftime_offsets.no_default
xarray.coding.cftime_offsets.no_default was removed in xarray 2025.1.0 pypi.org - Removed
xarray.coding.cftime_offsets.NoDefault
xarray.coding.cftime_offsets.NoDefault was removed in xarray 2025.1.0 pypi.org - Removed
xarray.coding.cftime_offsets.SideOptions
xarray.coding.cftime_offsets.SideOptions was removed in xarray 2025.1.0 pypi.org - Removed
xarray.coding.cftimeindex.build_pattern
xarray.coding.cftimeindex.build_pattern was removed in xarray 2025.1.0 pypi.org - Removed
xarray.coding.cftimeindex.named
xarray.coding.cftimeindex.named was removed in xarray 2025.1.0 pypi.org - Removed
xarray.coding.cftimeindex.optional
xarray.coding.cftimeindex.optional was removed in xarray 2025.1.0 pypi.org - Removed
xarray.coding.cftimeindex.parse_iso8601_like
xarray.coding.cftimeindex.parse_iso8601_like was removed in xarray 2025.1.0 pypi.org - Removed
xarray.coding.cftimeindex.trailing_optional
xarray.coding.cftimeindex.trailing_optional was removed in xarray 2025.1.0 pypi.org
And 33 more in this version. Sign up to see every change
xarray 2024.1.0 breaking changes
- Removed
xarray.conventions.IndexVariable
xarray.conventions.IndexVariable was removed in xarray 2024.1.0 pypi.org - Removed
xarray.core.groupby.integer_types
xarray.core.groupby.integer_types was removed in xarray 2024.1.0 pypi.org - Removed
xarray.core.types.OrderedDims
xarray.core.types.OrderedDims was removed in xarray 2024.1.0 pypi.org - Removed
xarray.core.utils.OrderedDims
xarray.core.utils.OrderedDims was removed in xarray 2024.1.0 pypi.org - Removed
xarray.core.utils.T_None
xarray.core.utils.T_None was removed in xarray 2024.1.0 pypi.org - Removed
xarray.tests.has_h5netcdf_ros3
xarray.tests.has_h5netcdf_ros3 was removed in xarray 2024.1.0 pypi.org - Removed
xarray.tests.requires_h5netcdf_ros3
xarray.tests.requires_h5netcdf_ros3 was removed in xarray 2024.1.0 pypi.org - Renamed
xarray.tests.test_backends.NetCDF4Base.test_compression_encoding
Use NetCDF4Base.test_compression_encoding_legacy instead. pypi.org - Signature changed
xarray.core.computation.corr
Was def corr(da_a: T_DataArray, da_b: T_DataArray, dim: Dims = None) -> T_DataArray; now def corr(da_a: T_DataArray, da_b: T_DataArray, dim: Dims = None, weights: T_DataArray | None = None) -> T_DataArray. pypi.org - Signature changed
xarray.core.computation.cov
Was def cov(da_a: T_DataArray, da_b: T_DataArray, dim: Dims = None, ddof: int = 1) -> T_DataArray; now def cov(da_a: T_DataArray, da_b: T_DataArray, dim: Dims = None, ddof: int = 1, weights: T_DataArray | None = None) -> T_DataArray. pypi.org
And 27 more in this version. Sign up to see every change
xarray 2023.1.0 breaking changes
- Removed
xarray.conventions.as_variable
xarray.conventions.as_variable was removed in xarray 2023.1.0 pypi.org - Signature changed
xarray.CFTimeIndex.get_loc
Was def get_loc(self, key, method=None, tolerance=None); now def get_loc(self, key). pypi.org - Signature changed
xarray.coding.cftimeindex.CFTimeIndex.get_loc
Was def get_loc(self, key, method=None, tolerance=None); now def get_loc(self, key). pypi.org - Signature changed
xarray.coding.strings.VariableCoder.decode
Was def decode(self, variable: Variable, name: Hashable = None) -> Variable; now def decode(self, variable: Variable, name: T_Name = None) -> Variable. pypi.org - Signature changed
xarray.coding.strings.VariableCoder.encode
Was def encode(self, variable: Variable, name: Hashable = None) -> Variable; now def encode(self, variable: Variable, name: T_Name = None) -> Variable. pypi.org - Signature changed
xarray.coding.variables.VariableCoder.decode
Was def decode(self, variable: Variable, name: Hashable = None) -> Variable; now def decode(self, variable: Variable, name: T_Name = None) -> Variable. pypi.org - Signature changed
xarray.coding.variables.VariableCoder.encode
Was def encode(self, variable: Variable, name: Hashable = None) -> Variable; now def encode(self, variable: Variable, name: T_Name = None) -> Variable. pypi.org - Signature changed
xarray.core.dataarray.DataArray.pad
Was def pad(self: T_DataArray, pad_width: Mapping[Any, int | tuple[int, int]] | None = None, mode: PadModeOptions = 'constant', stat_length: int | tuple[int, int] | Mapping[Any, tuple[int, int]] | None = None, constant_values: float |... pypi.org - Signature changed
xarray.core.dataset.Dataset.pad
Was def pad(self: T_Dataset, pad_width: Mapping[Any, int | tuple[int, int]] | None = None, mode: PadModeOptions = 'constant', stat_length: int | tuple[int, int] | Mapping[Any, tuple[int, int]] | None = None, constant_values: float |... pypi.org - Signature changed
xarray.core.variable.Variable.pad
Was def pad(self, pad_width: Mapping[Any, int | tuple[int, int]] | None = None, mode: PadModeOptions = 'constant', stat_length: int | tuple[int, int] | Mapping[Any, tuple[int, int]] | None = None, constant_values: float | tuple[float... pypi.org
And 3 more in this version. Sign up to see every change
xarray 2022.3.0 breaking changes
- Removed
xarray.tests.dummy_context
xarray.tests.dummy_context was removed in xarray 2022.3.0 pypi.org - Removed
xarray.tests.test_dataarray.test_drop_duplicates
xarray.tests.test_dataarray.test_drop_duplicates was removed in xarray 2022.3.0 pypi.org - Configuration changed
The package moved from its previous version numbering to calendar versioning, so version numbers no longer follow the old scheme. github.com - Signature changed
xarray.backends.pydap_.PydapBackendEntrypoint.open_dataset
Was def open_dataset(self, filename_or_obj, mask_and_scale=True, decode_times=True, concat_characters=True, decode_coords=True, drop_variables=None, use_cftime=None, decode_timedelta=None, session=None); now def open_dataset(self... pypi.org - Signature changed
xarray.backends.pydap_.PydapDataStore.open
Was @classmethod def open(cls, url, session=None); now @classmethod def open(cls, url, application=None, session=None, output_grid=None, timeout=None, verify=None, user_charset=None). pypi.org - Signature changed
xarray.backends.PydapDataStore.open
Was @classmethod def open(cls, url, session=None); now @classmethod def open(cls, url, application=None, session=None, output_grid=None, timeout=None, verify=None, user_charset=None). pypi.org - Signature changed
xarray.CFTimeIndex.__new__
Was def __new__(cls, data, name=None); now def __new__(cls, data, name=None, **kwargs). pypi.org - Signature changed
xarray.coding.cftime_offsets.Day
Was class Day(BaseCFTimeOffset); now class Day(Tick). pypi.org - Signature changed
xarray.coding.cftime_offsets.Hour
Was class Hour(BaseCFTimeOffset); now class Hour(Tick). pypi.org - Signature changed
xarray.coding.cftime_offsets.Microsecond
Was class Microsecond(BaseCFTimeOffset); now class Microsecond(Tick). pypi.org
And 22 more in this version. Sign up to see every change
xarray 0.21.0 breaking changes
- Removed
xarray.core.dataarray.pdcompat
xarray.core.dataarray.pdcompat was removed in xarray 0.21.0 pypi.org - Removed
xarray.core.duck_array_ops.sparse_array_type
xarray.core.duck_array_ops.sparse_array_type was removed in xarray 0.21.0 pypi.org - Removed
xarray.core.duck_array_ops.sparse_version
xarray.core.duck_array_ops.sparse_version was removed in xarray 0.21.0 pypi.org - Removed
xarray.core.pdcompat.Panel
xarray.core.pdcompat.Panel was removed in xarray 0.21.0 pypi.org - Removed
xarray.plot.dataset_plot.plt
xarray.plot.dataset_plot.plt was removed in xarray 0.21.0 pypi.org - Removed
xarray.plot.utils.plt
xarray.plot.utils.plt was removed in xarray 0.21.0 pypi.org - Removed
xarray.plot.utils.register_pandas_datetime_converter_if_needed
xarray.plot.utils.register_pandas_datetime_converter_if_needed was removed in xarray 0.21.0 pypi.org - Removed
xarray.tests.LooseVersion
xarray.tests.LooseVersion was removed in xarray 0.21.0 pypi.org - Removed
xarray.tests.test_backends.LooseVersion
xarray.tests.test_backends.LooseVersion was removed in xarray 0.21.0 pypi.org - Removed
xarray.tests.test_missing.test_interpolate_allnans
xarray.tests.test_missing.test_interpolate_allnans was removed in xarray 0.21.0 pypi.org
And 77 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.