Skip to content

A library with tests for various DataFrame API protocol implementations? #59

Open
@anmyachev

Description

@anmyachev

Hi @MarcoGorelli!

At first glance, it seems that it is quite simple to organize a library that will make it possible to configure constructor functions, after which it will be possible to run tests. I believe this would greatly reduce the amount of support code for each library that would support the standard. And it would be easier to switch to new versions of the protocol, since the set of tests will change.

Something like:

import pandas
import dataframe_api_compat.tests

# setup constructors
dataframe_api_compat.tests.setup_column_from_sequence_constructor(pandas.dataframe_api_namespace.column_from_sequence)
...

# run tests
dataframe_api_compat.tests.run_general_test_suite()

I'm interested to know your thoughts on this matter, I'm sure you've thought about it.

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