Skip to content

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

Merged
PaulDudaRESPEC merged 1 commit intorespec:developfrom
timcera:develop
Dec 17, 2024
Merged

Added "pandas_offset_by_version" to address deprecated offset codes.#183
PaulDudaRESPEC merged 1 commit intorespec:developfrom
timcera:develop

Conversation

@timcera
Copy link
Copy Markdown
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
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