metno / pyaerocom

Python tools for the AeroCom project
https://pyaerocom.readthedocs.io/
GNU General Public License v3.0
23 stars 13 forks source link

rename deprecated pandas time-frequencies #1196

Closed heikoklein closed 4 weeks ago

heikoklein commented 4 weeks ago

Change Summary

Some Pandas time-frequencies have been deprecated in pandas 2.2 and give now many deprecation warnings. These time-frequencies have now been updated to use the newer ones (but already available in pandas 1.5).

see https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases

Related issue number

Related to #1066 , but does not fix it completely.

Checklist

codecov[bot] commented 4 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 79.26%. Comparing base (16208c7) to head (c82b2d6). Report is 1 commits behind head on main-dev.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main-dev #1196 +/- ## ========================================= Coverage 79.26% 79.26% ========================================= Files 131 131 Lines 20239 20240 +1 ========================================= + Hits 16042 16043 +1 Misses 4197 4197 ``` | [Flag](https://app.codecov.io/gh/metno/pyaerocom/pull/1196/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=metno) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/metno/pyaerocom/pull/1196/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=metno) | `79.26% <100.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=metno#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

lewisblake commented 3 weeks ago

This PR breaks the tests using pandas 1.5.3.