Skip to content

Conversation

@kafitzgerald
Copy link
Collaborator

@kafitzgerald kafitzgerald commented Sep 15, 2025

Closes #1371

Overview

Addresses deprecations from Pandas and Xarray causing warnings and/or failures in the test suite.

In particular, the use of several Pandas offset aliases (see here for more info from Pandas) and the use of Dataset.dims as a mapping from dimension names to lengths (see here).

It's worth noting that I didn't make an effort to make these changes backwards compatible with versions of Pandas and Xarray before the suggested replacements existed. For Pandas, this has been working since v2.2.0 released in January, 2024 and for Xarray Dataset.sizes has been around since well before they adopted CalVer so probably less of a concern. Not sure if you all have thoughts / policies on this.

PR Checklist

General

  • An issue is linked created and linked
  • Add appropriate labels
  • Filled out Overview and Expected Usage (if applicable) sections

@kafitzgerald kafitzgerald marked this pull request as ready for review September 15, 2025 23:14
Copy link
Member

@philipc2 philipc2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Copy link
Member

@erogluorhan erogluorhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much for doing this!

@erogluorhan erogluorhan merged commit 195dc3c into UXARRAY:main Sep 16, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pandas deprecations

3 participants