pyspark.sql.functions.radians

pyspark.sql.functions.radians(col)[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()