Skip to content

Commit 68eb043

Browse files
committed
added docstring
1 parent be5aff1 commit 68eb043

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/pyspark/sql/functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ def randn(seed=None):
367367
@ignore_unicode_prefix
368368
@since(1.5)
369369
def sha1(col):
370-
"""
370+
"""Returns the hex string result of SHA-1.
371+
371372
>>> sqlContext.createDataFrame([('ABC',)], ['a']).select(sha1('a').alias('hash')).collect()
372373
[Row(hash=u'3c01bdbb26f358bab27f267924aa2c9a03fcfdb8')]
373374
"""

0 commit comments

Comments
 (0)