Skip to content

Commit 99efe62

Browse files
details on weekday argument for DateOffset docs (#54332)
* details on weekday argument for DateOffset docs * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * details on weekday argument for DateOffset docs * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * details on weekday argument for DateOffset docs * details on weekday argument for DateOffset docs --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b1192b3 commit 99efe62

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

pandas/_libs/tslibs/offsets.pyx

+22
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,28 @@ class DateOffset(RelativeDeltaOffset, metaclass=OffsetMeta):
14871487
normalize : bool, default False
14881488
Whether to round the result of a DateOffset addition down to the
14891489
previous midnight.
1490+
weekday : int {0, 1, ..., 6}, default 0
1491+
1492+
A specific integer for the day of the week.
1493+
1494+
- 0 is Monday
1495+
- 1 is Tuesday
1496+
- 2 is Wednesday
1497+
- 3 is Thursday
1498+
- 4 is Friday
1499+
- 5 is Saturday
1500+
- 6 is Sunday
1501+
1502+
Instead Weekday type from dateutil.relativedelta can be used.
1503+
1504+
- MO is Monday
1505+
- TU is Tuesday
1506+
- WE is Wednesday
1507+
- TH is Thursday
1508+
- FR is Friday
1509+
- SA is Saturday
1510+
- SU is Sunday.
1511+
14901512
**kwds
14911513
Temporal parameter that add to or replace the offset value.
14921514

0 commit comments

Comments
 (0)