Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/19672#discussion_r149302867 --- Diff: python/pyspark/sql/functions.py --- @@ -869,6 +869,19 @@ def month(col): return Column(sc._jvm.functions.month(_to_java_column(col))) +@since(2.3) +def dayofweek(col): + """ + Extract the day of the week of a given date as integer. --- End diff -- Let's match the doc with Scala one BTW.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org