Skip to content

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

@mghern

Description

@mghern

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe problem described is something that must be fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions