saving awkward array #3174
Replies: 1 comment
-
The natural argument type for ak.to_parquet is an ak.Array or ak.Record, not What's supposed to happen in this case is that the For your script, you probably want to do data = ak.Record({
"px": px,
"py": py,
"pz": pz,
"e": e
}) which leaves the data = ak.zip({
"px": px,
"py": py,
"pz": pz,
"e": e
}) which makes a ragged arrays of records instead. (To see the difference, print the types and notice where the " import vector
vector.register_awkward()
data = ak.zip({
"px": px,
"py": py,
"pz": pz,
"e": e
}, with_name="Momentum4D") and then you can do things like Footnotes
|
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I am having trouble saving some awkward arrays. I tried saving them in the awkward.to_parquet but it is giving me this error:
This is the code that I ran with:
Beta Was this translation helpful? Give feedback.
All reactions