Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "pandas_offset_by_version" to address deprecated offset codes. #183

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

timcera
Copy link
Contributor

@timcera timcera commented Dec 15, 2024

  • Some pandas offset codes changed in pandas 2.2. If <2.2 offset codes are with >2.2 throws deprecation warnings and if >2.2 codes used with <2.2 throws value errors. Using the new "pandas_offset_by_version" function will used the >2.2 codes and change to the older codes if run with pandas <2.2.
  • Fixed to_numeric(..., errors="ignore", ...) deprecation warnings.
  • Fixed resample(..., kind="timestamp", ...) deprecation warnings.
  • Removed unused FILES block entry for WDM2 and fixed comments ("***" has to be in columns less than 80) in tests/ZRW_WestIndian/HSPF.uci and removed the unused tests/ZRW_WestIndian/HSPF.WDM.
  • Added missing WDM file in tests/ipwater.

* Some pandas offset codes changed in pandas 2.2.  If <2.2 offset
  codes are with >2.2 throws deprecation warnings and if >2.2 codes
  used with <2.2 throws value errors.  Using the new
  "pandas_offset_by_version" function will used the >2.2 codes and
  change to the older codes if run with pandas <2.2.
* Fixed to_numeric(..., errors="ignore", ...) deprecation warnings.
* Fixed resample(..., kind="timestamp", ...) deprecation warnings.
* Removed unused FILES block entry for WDM2 and fixed comments
  ("***" has to be in columns less than 80) in
  tests/ZRW_WestIndian/HSPF.uci and removed the unused
  tests/ZRW_WestIndian/HSPF.WDM.
* Added missing WDM file in tests/ipwater.
@PaulDudaRESPEC PaulDudaRESPEC merged commit 2080d59 into respec:develop Dec 17, 2024
11 checks passed
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.

2 participants