Skip to content

Commit 04b35af

Browse files
author
Matt Roeschke
committed
some edits
1 parent e2e059a commit 04b35af

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/source/whatsnew/v0.24.0.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ that the dates have been converted to UTC
287287

288288
:class:`Day` and associated frequency alias ``'D'`` were documented to represent
289289
a calendar day; however, arithmetic and operations with :class:`Day` sometimes
290-
respected absolute time instead (i.e. ```Day(n)`` and acted identically to ```Timedelta(days=n)``).
290+
respected absolute time instead (i.e. ``Day(n)`` and acted identically to ``Timedelta(days=n)``).
291291

292292
*Previous Behavior*:
293293

@@ -320,7 +320,7 @@ Addition with :class:`CalendarDay` across a daylight savings time transition:
320320
ts + pd.offsets.CalendarDay(1)
321321

322322
However, if the resulting arithmetic results in a non-existent or ambiguous
323-
time, an error will raise
323+
time, an error will raise.
324324

325325
.. ipython:: python
326326

pandas/tseries/offsets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2369,10 +2369,12 @@ def generate_range(start=None, end=None, periods=None,
23692369
* At least two of (start, end, periods) must be specified.
23702370
* If both start and end are specified, the returned dates will
23712371
satisfy start <= date <= end.
2372+
* If both time_rule and offset are specified, time_rule supersedes offset.
23722373
23732374
Returns
23742375
-------
23752376
dates : generator object
2377+
23762378
"""
23772379
if time_rule is not None:
23782380
from pandas.tseries.frequencies import get_offset

0 commit comments

Comments
 (0)