pyspark.sql.functions.
rint
Returns the double value that is closest in value to the argument and is equal to a mathematical integer.
New in version 1.4.