Skip to content

Commit

Permalink
[SPARK-8270] python fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekbecker committed Jul 3, 2015
1 parent adbd075 commit d91b12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/sql/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def explode(col):
def levenshtein(left, right):
"""Computes the Levenshtein distance of the two given strings.
>>> val df0 = sqlContext.createDataFrame([('kitten', 'sitting',)], ['l', 'r'])
>>> df0 = sqlContext.createDataFrame([('kitten', 'sitting',)], ['l', 'r'])
>>> df0.select(levenshtein('l', 'r').alias('d')).collect()
[Row(d=3)]
"""
Expand Down

0 comments on commit d91b12c

Please sign in to comment.