Skip to content

Commit e6864b5

Browse files
committed
review edits
1 parent ebfa426 commit e6864b5

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

doc/source/advanced.rst

+4
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,10 @@ bins, with ``NaN`` representing a missing value similar to other dtypes.
924924
925925
pd.cut([0, 3, 5, 1], bins=c.categories)
926926
927+
928+
Generating Ranges of Intervals
929+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
930+
927931
If we need intervals on a regular frequency, we can use the :func:`interval_range` function
928932
to create an ``IntervalIndex`` using various combinations of ``start``, ``end``, and ``periods``.
929933
The default frequency for ``interval_range`` is a 1 for numeric intervals, and calendar day for

doc/source/timedeltas.rst

+6-3
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ You can convert a ``Timedelta`` to an `ISO 8601 Duration`_ string with the
352352
TimedeltaIndex
353353
--------------
354354

355-
To generate an index with time delta, you can use either the ``TimedeltaIndex`` or
355+
To generate an index with time delta, you can use either the :class:`TimedeltaIndex` or
356356
the :func:`timedelta_range` constructor.
357357

358358
Using ``TimedeltaIndex`` you can pass string-like, ``Timedelta``, ``timedelta``,
@@ -363,8 +363,11 @@ or ``np.timedelta64`` objects. Passing ``np.nan/pd.NaT/nat`` will represent miss
363363
pd.TimedeltaIndex(['1 days', '1 days, 00:00:05',
364364
np.timedelta64(2,'D'), datetime.timedelta(days=2,seconds=2)])
365365
366-
Similar to ``date_range``, you can construct regular ranges of a ``TimedeltaIndex``
367-
using ``timedelta_range``. The default frequency for ``timedelta_range`` is
366+
Generating Ranges of Time Deltas
367+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
368+
369+
Similar to :func:`date_range`, you can construct regular ranges of a ``TimedeltaIndex``
370+
using :func:`timedelta_range`. The default frequency for ``timedelta_range`` is
368371
calendar day:
369372

370373
.. ipython:: python

0 commit comments

Comments
 (0)