-
- Downloads
[SPARK-20456][DOCS] Add examples for functions collection for pyspark
## What changes were proposed in this pull request? This adds documentation to many functions in pyspark.sql.functions.py: `upper`, `lower`, `reverse`, `unix_timestamp`, `from_unixtime`, `rand`, `randn`, `collect_list`, `collect_set`, `lit` Add units to the trigonometry functions. Renames columns in datetime examples to be more informative. Adds links between some functions. ## How was this patch tested? `./dev/lint-python` `python python/pyspark/sql/functions.py` `./python/run-tests.py --module pyspark-sql` Author: Michael Patterson <map222@gmail.com> Closes #17865 from map222/spark-20456.
Showing
- R/pkg/R/functions.R 6 additions, 5 deletionsR/pkg/R/functions.R
- python/pyspark/sql/functions.py 105 additions, 61 deletionspython/pyspark/sql/functions.py
- sql/core/src/main/scala/org/apache/spark/sql/functions.scala 8 additions, 6 deletionssql/core/src/main/scala/org/apache/spark/sql/functions.scala
Loading
Please register or sign in to comment