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

[BUG] DataFrame.columns returns a pd.Index not a cudf.Index #17481

Open
Matt711 opened this issue Dec 2, 2024 · 1 comment
Open

[BUG] DataFrame.columns returns a pd.Index not a cudf.Index #17481

Matt711 opened this issue Dec 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Matt711
Copy link
Contributor

Matt711 commented Dec 2, 2024

Describe the bug
When accessing the columns of a cudf.DataFrame initialized with with a columns=cudf.Index(...), a pandas index is returned.
Steps/Code to reproduce bug

import cudf

df = cudf.DataFrame(columns=["foo"])

print(df)
print(type(df.columns))
Empty DataFrame
Columns: [foo]
Index: []
<class 'pandas.core.indexes.base.Index'>

Expected behavior
return a cudf.Index

@vyasr
Copy link
Contributor

vyasr commented Dec 10, 2024

#14012 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants