You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there is no convenient way for checking if a given array has masked entries if it is not a MaskedArray type, i.e. the mask methods are not universal.
For float arrays, a workaround is numpy.isnan(array.fillna(numpy.nan)).
I would propose array.isnan(axis=-1) or awkward.isnan(array, axis=-1) signatures, where the axis chooses the depth of the structure at which to evaluate the masking status, much like the array.flatten(axis=-1) function.
Currently, there is no convenient way for checking if a given array has masked entries if it is not a
MaskedArraytype, i.e. the mask methods are not universal.For float arrays, a workaround is
numpy.isnan(array.fillna(numpy.nan)).I would propose
array.isnan(axis=-1)orawkward.isnan(array, axis=-1)signatures, where the axis chooses the depth of the structure at which to evaluate the masking status, much like thearray.flatten(axis=-1)function.