Skip to content

Start emitting deprecation warning for Dataset.to_array (GH11721) - #11788

Merged
dcherian merged 2 commits into
pydata:mainfrom
SoutrikDas:deprecate-to-array
Oct 23, 2026
Merged

dcherian merged 2 commits into
pydata:mainfrom
SoutrikDas:deprecate-to-array

Conversation

@SoutrikDas

@SoutrikDas SoutrikDas commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Description

Dataset.to_array is deprecated in favor of Dataset.to_dataarray but no warnings were being emitted. Add a FutureWarning there. Add a test to check if warning is being emitted.

Checklist

Dataset.to_array is deprecated in favor of Dataset.to_dataarray
but no warnings were being emitted. Add a FutureWarning there.
Add a test to check if warning is being emitted.
@welcome

welcome Bot commented Oct 22, 2026

Copy link
Copy Markdown

Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient.
If you have questions, some answers may be found in our contributing guidelines.

@headtr1ck headtr1ck left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@dcherian
dcherian merged commit c6df1b9 into pydata:main Oct 23, 2026
67 of 72 checks passed
@welcome

welcome Bot commented Oct 23, 2026

Copy link
Copy Markdown

Congratulations on completing your first pull request! Welcome to Xarray! We are proud of you, and hope to see you again! celebration gif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants