Skip to content

[Enh]: Testing module #2804

@elephaint

Description

@elephaint

We would like to learn about your use case. For example, if this feature is needed to adopt Narwhals in an open source project, could you please enter the link to it below?

At first hierarchicalforecast, in the future also our other open-source libraries in the nixtla ecosystem

Please describe the purpose of the new feature or describe the problem to solve.

Pandas and Polars support testing functionalies, like the following functions:

pd.testing.assert_frame_equal
pl.testing.assert_frame_equal

This is really convenient e.g. when unit testing functionality. Ideally, Narwhals has it too, so that we can abstract away from the dataframe provided and run the unit test on any desired dataframe engine.

Suggest a solution if possible.

Include wrappers for this testing functionality, or include native Narwhals testing functionality, e.g.

nw.testing.asserts.assert_frame_equal

If you have tried alternatives, please describe them below.

No response

Additional information that may help us understand your needs.

No response

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