pyspark.sql.functions.degrees

pyspark.sql.functions.degrees(col: ColumnOrName) → pyspark.sql.column.Column

Converts an angle measured in radians to an approximately equivalent angle measured in degrees.

Parameters
colColumn or str

angle in radians

Returns
Column

angle in degrees, as if computed by java.lang.Math.toDegrees()