ak.angle#

Defined in awkward.operations.ak_angle on line 17.

ak.angle(val, deg=False, highlevel=True, behavior=None, attrs=None)#
Parameters:
  • val – array_like Input array.

  • deg (bool, default is False) – If True, returns angles in degrees, otherwise in radians.

  • 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 counterclockwise angle from the positive real axis on the complex plane in the range ``(-pi, pi]``, with dtype as a float.