Skip to content
This repository was archived by the owner on Jun 21, 2022. It is now read-only.

awkward.isnan #227

@nsmith-

Description

@nsmith-

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions