Skip to content

address issue with __dataframe_namespace__ and non-compliant dataframes #169

Closed
@rgommers

Description

@rgommers

The __dataframe_namespace__ method is currently modeled on the corresponding method in the array API. However, we're in a slightly different situation here, with a separate developer-facing API. There is a need to convert to/from the DataFrame and namespace from a non-standard-compliant user facing dataframe object. We already have the reverse, but this bit is missing - see #156 (comment).

Probably the pattern should be:

pdx, df_compliant = df.__dataframe_namespace__()
# use API standard ....
return df_compliant.dataframe

when going from public API in a df-using library to the standard-using internals. Inside the internals there should then be only usage of the standard-compliant dataframe ideally.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions