I’ve got a tree in a ROOT file that contains some vector variables, such as
jet_pt, the first element is the pT of the first jet in an event, the second element is the pT of the second jet in an event and so on. I would like to read in such values such that they become separate columns in a resulting DataFrame, such as
jet_pt_2. Currently, there seems to be a flattening process happening. How should I read in the ROOT file?
import root_pandas df = root_pandas.read_root("data.root", "nominal", flatten = ["jet_pt"], ignore = ["truth_blah_info"])