pyspark.sql.functions.
log2
Returns the base-2 logarithm of the argument.
Examples
>>> spark.createDataFrame([(4,)], ['a']).select(log2('a').alias('log2')).collect() [Row(log2=2.0)]
previous
pyspark.sql.functions.log1p
next
pyspark.sql.functions.pow