Skip to content
Discussion options

You must be logged in to vote

This is a change in behavior from Uproot 3, and if, after understanding the reason why, you have some suggested text for how it should be explained in the documentation, let me know.

Although Pandas DataFrames can describe jagged data by putting the jaggedness into a MultiIndex, a DataFrame can have only one index. Thus, data with different multiplicities can't go into the same DataFrame.

Below, we ask for both jets and muons. The jet index (in each event) is unrelated to the muon index (in each event), so they really have to be in different DataFrames.

>>> events.arrays(filter_name=["Jet_P*", "Muon_P*"], library="pd")
(                   Jet_Px     Jet_Py      Jet_Pz
entry subentry

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bdrum
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
Converted from issue

This discussion was converted from issue #114 on December 08, 2020 20:42.