Feature: Add support for pandas 3#443
Merged
akeeste merged 13 commits intoJun 9, 2026
Merged
Conversation
Pandas deprecated lower case d here: pandas-dev/pandas#58998 Upper case d `D` is calendar day: https://pandas.pydata.org/docs/user_guide/timeseries.html#period-aliases
pyarrow provides native string dtype support for mhkit. While technically optional, mhkit benefits from one standardized backend for representing columnar data. At this time pyarrow is that standard.
The narrow hdf5 range causes the solve when pyarrow is included to be slow. Increasing the allowed range improves the pip solver speed.
These should no longer be necessary with the changes to dependencies
This removes any explicit coveralls intalls in favor of the coverallsapp/github-action@v2 which is self contained and contains all binaries necessary for coveralls to run.
Agg is a non interactive matplotlib backend and lets the tests runh
"headless". Without this specification tests can choose their backend
which can sometimes lead to failing tests on headless machines (GH
Actions).
Contributor
|
All tests passed on the last significant commit. Approved and merging. |
Contributor
Author
|
@akeeste, thank you! |
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.
Pandas 3 Changes
environment-dev.ymlandpyproject.toml, enabling support for pandas 3.x.replace_pandas_missing_values_with_naninmhkit/wave/io/ndbc.pyto replace missing values withNaNin a way that is compatible with both pandas 2.x and 3.x.Test Updates
test_get_buoy_metadatalatitude and longitude assertions delta tolerance to allow for a small amount real world buoy drift.test_request_parse_workflow_multiyear(mhkit/tests/wave/io/test_cdip.py) by using"D"instead of"d"in thefloormethod. Pandas deprecateddin 3.0+ DEPR: lowercase stringsw,d,bandcdenoting frequencies inWeek,Day,BusinessDayandCustomBusinessDayclasses pandas-dev/pandas#58998. period aliases are here:https://pandas.pydata.org/docs/user_guide/timeseries.html#period-aliases