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.info() on list of structs throws error #11893

Closed
karthikeyann opened this issue Oct 11, 2022 · 0 comments · Fixed by #12033
Closed

[BUG] DataFrame.info() on list of structs throws error #11893

karthikeyann opened this issue Oct 11, 2022 · 0 comments · Fixed by #12033
Assignees
Labels
bug Something isn't working Python Affects Python cuDF API.

Comments

@karthikeyann
Copy link
Contributor

Describe the bug
cuDF python DataFrame.info() throws error on list of structs column.
AttributeError: 'StructDtype' object has no attribute 'itemsize'

Steps/Code to reproduce bug

import cudf
import pandas as pd
json_str = """{"a" : [ { "b": 1} ]} """
pdf = pd.read_json(StringIO(json_str), orient="records", lines=True )
df = cudf.from_pandas(pdf)
pdf.info()
df.info()

Expected behavior
info() should produce similar result as other list columns.

**Environment overview **

  • Environment location: Docker
  • Method of cuDF install: from source
@karthikeyann karthikeyann added bug Something isn't working Needs Triage Need team to review and classify Python Affects Python cuDF API. labels Oct 11, 2022
@galipremsagar galipremsagar self-assigned this Oct 11, 2022
@galipremsagar galipremsagar removed the Needs Triage Need team to review and classify label Oct 11, 2022
rapids-bot bot pushed a commit that referenced this issue Nov 3, 2022
…pe (#12033)

Fixes: #11893 

- [x] This PR implements `StructColumn.memory_usage` and `StructDtype.items`

Authors:
  - GALI PREM SAGAR (https://github.com/galipremsagar)

Approvers:
  - Lawrence Mitchell (https://github.com/wence-)

URL: #12033
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants