Skip to content

DOC: Added constructor parameters to DateOffset docstring for API consistency #52431 #61363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
4 changes: 4 additions & 0 deletions pandas/_libs/tslibs/offsets.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1639,6 +1639,10 @@ class DateOffset(RelativeDeltaOffset, metaclass=OffsetMeta):
"""
Standard kind of date increment used for a date range.

class pandas.tseries.offsets.DateOffset(
n = 1, normalize = False, weekday = 0, ``**kwds``
)

Works exactly like the keyword argument form of relativedelta.
Note that the positional argument form of relativedelta is not
supported. Use of the keyword n is discouraged-- you would be better
Expand Down
Loading