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
arrayis a record, this returns True if the record is a tuple. Ifarrayis an array, this returns True if the outermost record is a tuple.- Parameters:
array – Array-like data (anything
ak.to_layoutrecognizes).- Returns:
True if
array(or its outermost record) is a tuple, False otherwise.