How to create a jagged array from a flat list and the layout/num values #623
Replies: 3 comments 2 replies
-
Okay, this needs more explanation (as a tutorial?). Meanwhile, the place to look for your specific question is ak.unflatten. |
Beta Was this translation helpful? Give feedback.
-
Ah, this is perfect! I feel like I should have been able to intuit the function name. 😁 Much thanks! |
Beta Was this translation helpful? Give feedback.
-
We had some discussion about the function name (@nsmith- and I) and I agree that it's not the best. It's only something that you'd think of if you had previously gone in the other direction (flatten, then unflatten). With a long to-do list, it's been hard for me to get to writing documentation. My first goal is to get the stubs in the left-bar of awkward-array.org filled out. On the other hand, answering questions as they come up organically might actually make more difference in the long run. Although I'll make sure to include "unflatten" in the docs, I'll convert this request for documentation into a Q&A discussion, so that it's always prominent (not "hidden," like closed issues). |
Beta Was this translation helpful? Give feedback.
-
On the tutorials site?
In the Python docstrings?
In the C++ doxygen API?
What, specifically, needs more explanation?
I'd like to create an awkward array from a flat list of numbers and then the layout/num information. For example, can I get this
from
Beta Was this translation helpful? Give feedback.
All reactions