Skip to content
Discussion options

You must be logged in to vote

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!

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@ananis25
Comment options

@agoose77
Comment options

@ananis25
Comment options

@agoose77
Comment options

@ananis25
Comment options

Answer selected by ananis25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants