Skip to content

DOC: Correct inconsistent description on default DateOffset setting #36516

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

Merged
merged 12 commits into from
Oct 31, 2020
4 changes: 3 additions & 1 deletion doc/source/user_guide/timeseries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,8 @@ arithmetic operator (``+``) or the ``apply`` method can be used to perform the s
ts + pd.Timedelta(days=1)
# Respects calendar time
ts + pd.DateOffset(days=1)
# Default DateOffset is 24 hours instead of a calendar day since Hour is one of subclasses for DateOffset
ts + pd.DateOffset()
friday = pd.Timestamp('2018-01-05')
friday.day_name()
# Add 2 business days (Friday --> Tuesday)
Expand All @@ -846,7 +848,7 @@ into ``freq`` keyword arguments. The available date offsets and associated frequ
:header: "Date Offset", "Frequency String", "Description"
:widths: 15, 15, 65

:class:`~pandas.tseries.offsets.DateOffset`, None, "Generic offset class, defaults to 1 calendar day"
:class:`~pandas.tseries.offsets.DateOffset`, None, "Generic offset class, defaults to 24 hours"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:class:`~pandas.tseries.offsets.BDay` or :class:`~pandas.tseries.offsets.BusinessDay`, ``'B'``,"business day (weekday)"
:class:`~pandas.tseries.offsets.CDay` or :class:`~pandas.tseries.offsets.CustomBusinessDay`, ``'C'``, "custom business day"
:class:`~pandas.tseries.offsets.Week`, ``'W'``, "one week, optionally anchored on a day of the week"
Expand Down