Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve formatting of reference time units under pandas 2.0.0 (#7441)
* [test-upstream] Preserve formatting of reference time units Changes in pandas 2.0.0 interfere with the way we expect some times to be formatted. * Use strftime to force expected date format Co-authored-by: Justus Magin <keewis@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [test-upstream] Preserve formatting of reference time units Changes in pandas 2.0.0 interfere with the way we expect some times to be formatted. * Use strftime to force expected date format Co-authored-by: Justus Magin <keewis@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [test-upstream] Remove old comment and move what's new entry to latest version * [test-upstream] remove old comment and move what's new entry * Update xarray/core/formatting.py * Use isoformat() now that pandas zero-pads years Co-authored-by: Justus Magin <keewis@users.noreply.github.com> * [test-upstream] update what's new * replace the `isoformat` separator with `" "` [test-upstream] * use the `sep` parameter to `isoformat` instead Co-authored-by: Spencer Clark <spencerkclark@gmail.com> * Update doc/whats-new.rst --------- Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com> Co-authored-by: Justus Magin <keewis@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Justus Magin <keewis@posteo.de>
- Loading branch information