A library with tests for various DataFrame API protocol implementations?
anmyachev opened this issue · 1 comments
anmyachev commented
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 commented
yup, sounds good!