From e7e6e5b436be61b174253ea6c520a8fe2ad87383 Mon Sep 17 00:00:00 2001 From: Yuming Wang Date: Fri, 26 May 2017 08:12:28 +0800 Subject: [PATCH] Update comment. --- python/pyspark/sql/functions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'