Python Round Function Issues with pyspark
Import import pyspark.sql.functions as F
to avoid conflict.
In this way, you can use all python built-in functions normally and when you want to use pyspark functions, use them as F.round
Don't do import * as it can mess up your namespace.
Pyspark has round function: http://spark.apache.org/docs/2.1.0/api/python/pyspark.sql.html#pyspark.sql.functions.round
So build-in function round
is being replaced by pyspark.sql.functions.round