-
Hi - awkward arrays have made processing arrow datasets with numba really nice! However, I can't quite figure how to use the combo for more dynamic use cases. I have a dataset of the type - Pattern matching is recursive, so it is hard to statically determine when a specific event attribute is accessed. And I get a lot of errors of the kind, However, given the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
How many fields (columns) do you have? One easy solution would be to explode the records into a list of arrays, which can then be indexed, e.g. event_fields = ak.unzip(events)
def process_events(event_fields):
j = choose_column_index()
do_something_with(
event_fields[j]
) As @jpivarski notes in #1420, supporting non-literal strings is an intended feature, but it's not the highest priority right now with all of the other things that are being worked on! |
Beta Was this translation helpful? Give feedback.
How many fields (columns) do you have? One easy solution would be to explode the records into a list of arrays, which can then be indexed, e.g.
As @jpivarski notes in #1420, supporting non-literal strings is an intended feature, but it's not the highest priority right now with all of the other things that are being worked on!