Defined in awkward._v2.operations.describe.ak_is_valid on line 6.

ak._v2.ak_is_valid.is_valid(array, exception=False)
  • array (ak.Array, ak.Record, ak.layout.Content, ak.layout.Record, ak.ArrayBuilder, ak.layout.ArrayBuilder) – Array or record to check.

  • exception (bool) – If True, validity errors raise exceptions.

Returns True if there are no errors and False if there is an error.

Checks for errors in the structure of the array, such as indexes that run beyond the length of a node’s content, etc. Either an error is raised or the function returns a boolean.

See also ak.validity_error.