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

Add record-preserving for behaviour to ak.flatten #984

Open
agoose77 opened this issue Jul 8, 2021 · 1 comment
Open

Add record-preserving for behaviour to ak.flatten #984

agoose77 opened this issue Jul 8, 2021 · 1 comment
Labels
feature New feature or request

Comments

@agoose77
Copy link
Collaborator

agoose77 commented Jul 8, 2021

As discussed in the user docs, there is currently no straightforward way for a user to completely flatten an array without losing its record structure, e.g.

>>> array = ak.Array([{'x': 1, 'y': 'hi'}])
>>> ak.flatten(array, axis=None)
<Array [1, 104, 105] type='3 * int64'>

@jpivarski mentioned on Gitter the idea of adding a new axis="records" case to ak.flatten which preserves (nested) record fields.

@agoose77 agoose77 added the feature New feature or request label Jul 8, 2021
@jpivarski jpivarski added the pr-next-release Required for the next release label Oct 31, 2022
@jpivarski jpivarski removed the pr-next-release Required for the next release label Nov 10, 2022
@jpivarski
Copy link
Member

@agoose77 I changed my mind. This does not have to be a next-release issue. We can leave it for the far future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: P5
Development

No branches or pull requests

2 participants