Replies: 1 comment
-
The masking and filtering features in NumPy / Awkward are actually orthogonal (unrelated) to the fields feature. If you have an array e.g. x = ak.Array([
[1,2,3],
[4, 5],
[6, 7, 8, 9]
]) then to mask out the elements y = x.mask[x > 1] The top-level function For more information on filtering and masking, I recommend reading the docs on the topic :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
This might be a stupid question, but I have an awkward array that looks like:
and I would like to filter/mask the inner values of the array (e.g. mask elements <= 1 such that
arr -> [[None,2,3],[4,5]
). I know how to do this if I have a field, since it's a simple `arr.field > X', but in this case the array has no fields.Is this possible?
Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions