Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anmyachev opened this issue Dec 14, 2023 · 1 comment

Comments

@anmyachev
Copy link
Contributor

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.

@MarcoGorelli
Copy link
Contributor

yup, sounds good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants