Skip to content

Support min/max of datetime#12183

Merged
jacobtomlinson merged 4 commits intodask:mainfrom
jsignell:min-time
Dec 5, 2025
Merged

Support min/max of datetime#12183
jacobtomlinson merged 4 commits intodask:mainfrom
jsignell:min-time

Conversation

@jsignell
Copy link
Copy Markdown
Member

@jsignell jsignell commented Dec 4, 2025

I just came across pydata/xarray#5001 which led me to #6354. It seems like at this point there is enough meta manipulation going on within the Array instantiation that happens after this piece of code that you don't really need to manipulate the dimensionality of the meta at all.

Copy link
Copy Markdown
Member

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

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

LGTM assuming the tests pass. Thanks.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 4, 2025

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

      9 files  +     4        9 suites  +4   3h 9m 15s ⏱️ + 1h 38m 44s
 18 156 tests +     5   16 941 ✅ +     6   1 215 💤  -     1  0 ❌ ±0 
162 632 runs  +72 284  150 536 ✅ +66 651  12 096 💤 +5 633  0 ❌ ±0 

Results for commit 1597f27. ± Comparison against base commit b1098a4.

♻️ This comment has been updated with latest results.

@jsignell
Copy link
Copy Markdown
Member Author

jsignell commented Dec 4, 2025

The existing tests pass without alteration, I'll add a few more to prove that this PR actually makes it possible to take the min/max of an array of datetimes.

Copy link
Copy Markdown
Member

@jacobtomlinson jacobtomlinson left a comment

Choose a reason for hiding this comment

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

Good to see you @jsignell! Thanks for this.

Appreciate the review @TomAugspurger

@jacobtomlinson jacobtomlinson merged commit dce3ec5 into dask:main Dec 5, 2025
22 of 24 checks passed
@jsignell jsignell deleted the min-time branch December 5, 2025 14:35
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.

Cannot compute min or max of dates in dask array when converted from dask dataframe using to_dask_array

3 participants