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

Double nested Awkward arrays are STL:Vector using library="pd" #885

Closed
mghern opened this issue May 4, 2023 · 0 comments · Fixed by #912
Closed

Double nested Awkward arrays are STL:Vector using library="pd" #885

mghern opened this issue May 4, 2023 · 0 comments · Fixed by #912
Labels
bug The problem described is something that must be fixed

Comments

@mghern
Copy link

mghern commented May 4, 2023

While trying to opening double nested root arrays with pandas, the array type remains as STLVector. The data I'm using has index, subindex and subsubindex. The double nested array opens fine with the default awkward opening.

import uproot
data = uproot.open("file.root").arrays(['Double Nested', 'Single Nested'], library="pd")
print(type(data.iloc[0]['Double Nested']), type(data.iloc[0]['Single Nested']))
<class 'uproot.containers.STLVector'> <class 'awkward.highlevel.Array'>

While opening data with the normal awkward is the expected awkward array type

import uproot
data = uproot.open("file.root").arrays(['Double Nested', 'Single Nested'])
print(type(data[0]['Double Nested']), type(data[0]['Single Nested']))
<class 'awkward.highlevel.Array'> <class 'awkward.highlevel.Array'>

I'm using uproot 5.0.7, pandas 2.0.1 and awkward-pandas 2022.12a1.

@mghern mghern added the bug (unverified) The problem described would be a bug, but needs to be triaged label May 4, 2023
@jpivarski jpivarski added bug The problem described is something that must be fixed and removed bug (unverified) The problem described would be a bug, but needs to be triaged labels Jun 8, 2023
@ioanaif ioanaif linked a pull request Jul 3, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The problem described is something that must be fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants