diff --git a/python/pyspark/sql/functions.py b/python/pyspark/sql/functions.py index 33a23b1eaec13..15f78b4e46095 100644 --- a/python/pyspark/sql/functions.py +++ b/python/pyspark/sql/functions.py @@ -1030,7 +1030,8 @@ def to_timestamp(col, format=None): @since(1.5) def trunc(date, format=0): """ - Returns date truncated to the unit specified by the format. + Returns date truncated to the unit specified by the format or + number truncated by specified decimal places.. :param format: 'year', 'YYYY', 'yy' or 'month', 'mon', 'mm'