Skip to content

hydrotools.metrics flags a Pandas4Warning #321

Description

@jarq6c

The hydrotools.metrics test suite is flagging this warning:

hydrotools/python/metrics/src/hydrotools/metrics/_validation.py:131: Pandas4Warning: Constructing a Categorical with a dtype and values containing non-null entries not in that dtype's categories is deprecated and will raise in a future version.
    s = pd.Series(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

The type transformation logic for categorical metrics may need to be revamped. It's likely inefficient, anyway.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions