Is the order of events persisted in a snippet like this:
tree_root = file.Get('MyTree')
tree_numpy = root_numpy.tree2array(tree_root, branches=used_columns)
tree_pandas = pandas.DataFrame(tree_numpy)
If I loop over these three objects, will the order of the values match in each case?
My tests indicate that the order of the events is persisted. Maybe someone who knows more about root_numpy and pandas can confirm?
I would be astonished is the order of entries (rows) changes during the conversion of a ROOT TTree to a panda. The only mechanism I could imagine that the order may change is when you do the conversion in parallel, which is not the case right now.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.