ak.is_tuple#

Defined in awkward.operations.ak_is_tuple on line 12.

ak.is_tuple(array)#

Returns True if a record, or the outermost record of an array, is a tuple.

If array is a record, this returns True if the record is a tuple. If array is an array, this returns True if the outermost record is a tuple.

Parameters:

array – Array-like data (anything ak.to_layout recognizes).

Returns:

True if array (or its outermost record) is a tuple, False otherwise.