pyspark.sql.functions.radians

pyspark.sql.functions.radians(col: ColumnOrName) → pyspark.sql.column.Column[source]

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

New in version 2.1.0.

Parameters
colColumn or str

angle in degrees

Returns
Column

angle in radians, as if computed by java.lang.Math.toRadians()