Skip to content

Commit

Permalink
added docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekbecker committed Jun 28, 2015
1 parent be5aff1 commit 68eb043
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/pyspark/sql/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ def randn(seed=None):
@ignore_unicode_prefix
@since(1.5)
def sha1(col):
"""
"""Returns the hex string result of SHA-1.
>>> sqlContext.createDataFrame([('ABC',)], ['a']).select(sha1('a').alias('hash')).collect()
[Row(hash=u'3c01bdbb26f358bab27f267924aa2c9a03fcfdb8')]
"""
Expand Down

0 comments on commit 68eb043

Please sign in to comment.