Repository: spark Updated Branches: refs/heads/master f141efeaf -> 865a3df3d
[DOCS] [SQL] [PYSPARK] Fix typo in ntile function Fix typo in ntile function. Author: Moussa Taifi <mouta...@gmail.com> Closes #8261 from moutai/patch-2. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/865a3df3 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/865a3df3 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/865a3df3 Branch: refs/heads/master Commit: 865a3df3d578c0442c97d749c81f554b560da406 Parents: f141efe Author: Moussa Taifi <mouta...@gmail.com> Authored: Wed Aug 19 09:42:41 2015 +0100 Committer: Sean Owen <so...@cloudera.com> Committed: Wed Aug 19 09:42:41 2015 +0100 ---------------------------------------------------------------------- python/pyspark/sql/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/865a3df3/python/pyspark/sql/functions.py ---------------------------------------------------------------------- diff --git a/python/pyspark/sql/functions.py b/python/pyspark/sql/functions.py index 41dfee9..4b74a50 100644 --- a/python/pyspark/sql/functions.py +++ b/python/pyspark/sql/functions.py @@ -531,7 +531,7 @@ def lead(col, count=1, default=None): def ntile(n): """ Window function: returns the ntile group id (from 1 to `n` inclusive) - in an ordered window partition. Fow example, if `n` is 4, the first + in an ordered window partition. For example, if `n` is 4, the first quarter of the rows will get value 1, the second quarter will get 2, the third quarter will get 3, and the last quarter will get 4. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org