You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one will also make sure that you don't have named axis clashes:
awkward_array=ak.zip({
"foo": ak.with_named_axis(ak.Array([1]), ("time",)),
"bar": ak.with_named_axis(ak.Array([2]), ("space",))
})
# > ValueError: The named axes are incompatible. Got: time and space for positional axis 0
I'd say that for constructing record arrays it is usually preferred to use ak.zip instead of the ak.Array constructor. Can you confirm this @jpivarski ?
Description of new feature
Axis names are lost when an awkward array with named axes is nested inside another awkward array. (Example attached)
Can awkward array preserve the named axes?
The text was updated successfully, but these errors were encountered: