Skip to content

featurebyte.atan2

atan2(
y: Series,
x: Series
) -> Series

Description

Construct a Series that contains the two-argument arctangent (atan2) values. Returns the angle in radians between the positive x-axis of a plane and the point given by the coordinates (x, y) on it.

Parameters

  • y: Series
    Series representing the y-coordinate

  • x: Series
    Series representing the x-coordinate

Returns

  • Series

Examples

>>> event_view = catalog.get_view("EVENT_VIEW")
>>> event_view["ANGLE"] = fb.atan2(event_view["Y"], event_view["X"])