Skip to content

bug loading dataframe containing a segarray with an _ in column name #2105

@21771

Description

@21771

Feature Description
When saving dataframes containing segarrays I have not found a straight forward way to read the data back into a dataframe. Is there a command or flags to enable automatic recreation of the segarrays from the _segments and _values arrays? This may exist but I have not found it.

**Example Behavior**
example:    df = ak.DataFrame(ak.recreate_segarrays(ak.read('foo.hdf')))
or               df = ak.DataFrame(ak.read('foo.hdf',restore_segarrays=True))
or               df = ak.DataFrame(ak.read('foo.hdf'),restore_segarrays=True)

Describe Workarounds
currently have a function to do this based on dataset names and array lengths, but am looking for a more robust capability.

Metadata

Metadata

Assignees

Labels

User ReportedA user submitted the issuebugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions