We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug cudf.DataFrame does not map namedtuple field names to column names like pandas
Steps/Code to reproduce bug Follow this guide http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports to craft a minimal bug report. This helps us reproduce the issue you're having and resolve the issue more quickly.
from collections import namedtuple import cudf import pandas Point = namedtuple("Point", "x y") pandas.DataFrame([Point(0, 0), Point(0, 3), (2, 3)]) # x y # 0 0 0 # 1 0 3 # 2 2 3 cudf.DataFrame([Point(0, 0), Point(0, 3), (2, 3)]) # 0 1 # 0 0 0 # 1 0 3 # 2 2 3
Expected behavior The cudf result should match the result
Environment overview (please complete the following information)
# Name Version Build Channel pandas 1.5.3 py310h9b08913_1 conda-forge # Name Version Build Channel cudf 23.10.00a cuda11_py310_230804_gd8bf9d2534_53 rapidsai-nightly libcudf 23.10.00a cuda11_230803_g15cc501190_51 rapidsai-nightly
Environment details Please run and paste the output of the cudf/print_env.sh script here, to gather any other relevant environment details
cudf/print_env.sh
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
DataFrame with namedtuples uses ._field as column names (#13824)
da6ac73
Allow namedtuple's `_field` attribute to be mapped to DataFrame column labels like pandas closes #13823 Authors: - Matthew Roeschke (https://github.com/mroeschke) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) - Lawrence Mitchell (https://github.com/wence-) URL: #13824
mroeschke
Successfully merging a pull request may close this issue.
Describe the bug
cudf.DataFrame does not map namedtuple field names to column names like pandas
Steps/Code to reproduce bug
Follow this guide http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports to craft a minimal bug report. This helps us reproduce the issue you're having and resolve the issue more quickly.
Expected behavior
The cudf result should match the result
Environment overview (please complete the following information)
Environment details
Please run and paste the output of the
cudf/print_env.sh
script here, to gather any other relevant environment detailsAdditional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: