Added "pandas_offset_by_version" to address deprecated offset codes.#183
Merged
PaulDudaRESPEC merged 1 commit intorespec:developfrom Dec 17, 2024
Merged
Added "pandas_offset_by_version" to address deprecated offset codes.#183PaulDudaRESPEC merged 1 commit intorespec:developfrom
PaulDudaRESPEC merged 1 commit intorespec:developfrom
Conversation
Contributor
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.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.