Skip to content

Failures with pandas>=3 #174

@leosaffin

Description

@leosaffin

Since pandas has released a version 3, some errors have popped (e.g. in https://github.com/leosaffin/huracanpy/actions/runs/22228791588)

  1. assess.match with consecutive=True doesn't work
  2. In info.season with convention="tc-long" the output is a string array which now has an underlying type pandas.arrays.ArrowStringArray which doesn't allow it to use boolean indexing (the line season_nh = season[tracks_year.lat >= 0].astype(int) fails)

For now, I have set pandas<3 in pyproject.toml, but it would be good to fix the errors and unpin this. The second error looks like a bug in pandas or xarray that should get fixed, but I may have to reproduce and report it. Need some more work to figure out the first error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions