Skip to content

pandas.testing.assert_series_equal precision defaults changed in pandas 1.1.0 #1018

Closed
@kandersolar

Description

@kandersolar

Pandas 1.1.0 changed the default precision tolerances in the assert_series_equal and similar functions: pandas-dev/pandas#30562. This is causing test failures on the Azure checks that use the most recent pandas version, e.g.: https://dev.azure.com/solararbiter/pvlib%20python/_build/results?buildId=3877&view=logs&j=ee50eb0a-7467-5494-0f35-e3b863355bb0&t=2efe8f58-8c60-5d45-8189-b00aa6aac1e4&l=209

I think maybe the best way to fix this is to wrap the pandas functions with our own with some version-checking logic. Or we could rework all the failing tests to use more precise values, or bump the minimum pandas version to 1.1.0, neither of which seems like a good option to me.

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