Replies: 1 comment 7 replies
-
I'd suggest transforming awk_b['b'] = None you end up with >>> awk_b.type.show()
3 * {
a: var * int64,
b: ?unknown
} Upon concatenation, this then becomes: >>> ak.concatenate([awk_a, awk_b]).type.show()
6 * {
a: var * int64,
b: option[var * int64]
} Awkward is still creating a union for the different layout nodes under the hood; |
Beta Was this translation helpful? Give feedback.
-
I would like to concatenate arrays of records without getting unions back. Here's a quick illustrative example of a use case:
I would like to end up with a non-Union result here. E.g. something like:
I would ideally like to be able to do this at concatenation time (and even be able to choose just to concatenate the intersection of keys). But, being able to convert from a union to an optional type would also work.
I'm having some trouble finding docs for this, how would I go about doing this?
Beta Was this translation helpful? Give feedback.
All reactions