-
-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
Description
The calculation of the week/weekofyear attribute of a Timestamp/DatetimeIndex differs from both python and mx.DateTime which both return week = 1
for 31-Dec-2013.
In [25]: import mx.DateTime
...: from datetime import datetime
...: d = datetime(2013,12,31)
...:
In [26]: d.isocalendar()
Out[26]: (2014, 1, 2)
In [27]: mx.DateTime.DateTimeFrom(d).iso_week
Out[27]: (2014, 1, 2)
In [28]: pd.Timestamp(d).week
Out[28]: 53