Skip to content

Commit 56f03b4

Browse files
author
MomIsBestFriend
committed
Added class method
1 parent 477b2d5 commit 56f03b4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pandas/_libs/tslibs/timestamps.pyx

+10
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,16 @@ class Timestamp(_Timestamp):
336336
"""
337337
return cls(datetime.combine(date, time))
338338

339+
@classmethod
340+
def fromisocalendar(cls, year, week, day):
341+
"""
342+
Timestamp.fromisocalendar(year, week, day)
343+
344+
Return a new Timestamp corresponding to the
345+
ISO calendar date specified by year, week and day.
346+
"""
347+
return cls(datetime.fromisocalendar(year, week, day))
348+
339349
def __new__(cls, object ts_input=_no_input,
340350
object freq=None, tz=None, unit=None,
341351
year=None, month=None, day=None,

0 commit comments

Comments
 (0)