-
Notifications
You must be signed in to change notification settings - Fork 20
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
Clarify if interchange dataframes should also have __dataframe__()
#80
Comments
I'm fairly sure we discussed this once or twice, and that the answer is yes but that there is an inconsistency between spec and implementations. Here is what the spec says currently: dataframe-api/protocol/dataframe_protocol.py Lines 307 to 310 in 4f7c1e0
And IIRC the implementations just return |
The relevant spec change to return |
This will align the implementation with those in other libraries, xref data-apis/dataframe-api#80
This will align the implementation with those in other libraries, xref data-apis/dataframe-api#80
This will align the implementation with those in other libraries, xref data-apis/dataframe-api#80
This will align the implementation with those in other libraries, xref data-apis/dataframe-api#80.
This will align the implementation with those in other libraries, xref data-apis/dataframe-api#80. Cc @shwina Authors: - Ralf Gommers (https://github.com/rgommers) Approvers: - Ashwin Srinath (https://github.com/shwina) URL: #11692
This will align the implementation with those in other libraries, xref data-apis/dataframe-api#80
This will align the implementation with those in other libraries, xref data-apis/dataframe-api#80
I couldn't work out if the interchange dataframe (i.e. the dataframe returned from
__dataframe__()
) should also have a__dataframe__()
method, e.g.With the upstream of current adopters, we have a split on whether the interchange dataframe has this method.
I had assumed that interchange dataframes should have
__dataframe__()
by virtue of it being a method in the DataFrame API object. I think it makes sense, as thenfrom_dataframe()
-like functions only need to check for__dataframe__()
to support interchanging both top-level and interchange dataframes of different libraries.If there is explicit specification somewhere in this regard then please give me a pointer! In any case, it might be worth clarifying in the
__dataframe__()
docstring where this method should be residing.The text was updated successfully, but these errors were encountered: