Skip to content

[BUG] pd.api.interchange.from_dataframe fails with simple cuDF dataframe #17282

@MarcoGorelli

Description

@MarcoGorelli

Describe the bug
pd.api.interchange.from_dataframe fails with simple cuDF dataframe

Steps/Code to reproduce bug

import cudf
import pandas as pd
df = cudf.DataFrame({'a': [1,2,3], 'b': [4,5,6]})
pd.api.interchange.from_dataframe(df)

this crashes the session https://colab.research.google.com/drive/1QXtKPcKQONi1g8WY9lI6FPZFhik_VVYg?usp=sharing

Expected behavior
it should convert to pandas dataframe with the same data

Environment overview (please complete the following information)

  • Environment location: [Bare-metal, Docker, Cloud(specify cloud provider)]
  • Method of cuDF install: [conda, Docker, or from source]
    • If method of install is [Docker], provide docker pull & docker run commands used

Environment details
Please run and paste the output of the cudf/print_env.sh script here, to gather any other relevant environment details

colab notebook

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

PythonAffects Python cuDF API.wontfixThis will not be worked on

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions