Skip to content

Commit 7f47208

Browse files
committed
details on weekday argument for DateOffset docs
1 parent c92b370 commit 7f47208

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

pandas/_libs/tslibs/offsets.pyx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,25 @@ class DateOffset(RelativeDeltaOffset, metaclass=OffsetMeta):
13731373
previous midnight.
13741374
**kwds
13751375
Temporal parameter that add to or replace the offset value.
1376+
weekday : int {0, 1, ..., 6}, default 0
1377+
A specific integer for the day of the week.
1378+
- 0 is Monday
1379+
- 1 is Tuesday
1380+
- 2 is Wednesday
1381+
- 3 is Thursday
1382+
- 4 is Friday
1383+
- 5 is Saturday
1384+
- 6 is Sunday.
13761385
1386+
Instead Weekday type from dateutil.relativedelta can be used.
1387+
- MO is Monday
1388+
- TU is Tuesday
1389+
- WE is Wednesday
1390+
- TH is Thursday
1391+
- FR is Friday
1392+
- SA is Saturday
1393+
- SU is Sunday.
1394+
13771395
Parameters that **add** to the offset (like Timedelta):
13781396
13791397
- years

0 commit comments

Comments
 (0)