ak.real#

Defined in awkward.operations.ak_real on line 17.

ak.real(array, highlevel=True, behavior=None, attrs=None)#
Parameters:
  • array – array_like Input array.

  • highlevel (bool, default is True) – If True, return an ak.Array; otherwise, return a low-level ak.contents.Content subclass.

  • behavior (None or dict) – Custom ak.behavior for the output array, if high-level.

  • attrs (None or dict) – Custom attributes for the output array, if high-level.

Returns the real components of the given array elements. If the arrays have complex elements, the returned arrays are floats.