You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2019/10/08 05:43:15 UTC

[jira] [Resolved] (SPARK-23673) PySpark dayofweek does not conform with ISO 8601

     [ https://issues.apache.org/jira/browse/SPARK-23673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-23673.
----------------------------------
    Resolution: Incomplete

> PySpark dayofweek does not conform with ISO 8601
> ------------------------------------------------
>
>                 Key: SPARK-23673
>                 URL: https://issues.apache.org/jira/browse/SPARK-23673
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark, Spark Core
>    Affects Versions: 2.3.0
>            Reporter: Ivan SPM
>            Priority: Minor
>              Labels: bulk-closed
>
> The new function dayofweek, that returns 1 = Sunday and 7 for Saturday, does not conform with ISO 8601, that states that the first day of the week is Monday, so 1 = Monday and 7 = Sunday. This behavior is also different from Pandas, that uses 0 = Monday and 6 = Sunday, but pandas is at least consistent with the ordering of ISO 8601.
> [https://en.wikipedia.org/wiki/ISO_8601#Week_dates]
> (Also reported by Antonio Pedro Vieira (aps.vieira95@gmail.com))



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org