Defined in awkward.operations.ak_imag on line 17.

ak.imag(val, highlevel=True, behavior=None, attrs=None)#
  • val – 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 imaginary components of the given array elements. If the arrays have complex elements, the returned arrays are floats.