You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Returns the number of days since 1970-01-01.
Addresses #8720
Pull Request resolved: #8725
Reviewed By: Yuhta
Differential Revision: D54414733
Pulled By: mbasmanova
fbshipit-source-id: 4535929ce4cfe81757860b54f6fcc9f7542f0b48
Description
weekday
Returns the day of the week for date as 0 = Monday, 1 = Tuesday, …, 6 = Sunday.
Differs from
dayofweek
which returns the day of the week for date as 1 = Sunday, 2 = Monday, ..., 7 = Saturday.Spark function docs - https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.functions.weekday.html
unix_date
Returns the number of days since 1970-01-01.
Spark function docs - https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.functions.unix_date.html
The text was updated successfully, but these errors were encountered: