-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix mean for datetime-like using the respective time resolution unit (#…
…9977) * fix mean for datetime-like by using the respective dtype time resolution unit, adapting tests * fix mypy * add PR to existing entry for non-nanosecond datetimes * Update xarray/core/duck_array_ops.py Co-authored-by: Spencer Clark <spencerkclark@gmail.com> * cast to "int64" in calculation of datime-like mean * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Spencer Clark <spencerkclark@gmail.com> --------- Co-authored-by: Spencer Clark <spencerkclark@gmail.com> Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
- Loading branch information
1 parent
e432479
commit e28f171
Showing
3 changed files
with
51 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters