Skip to content

Commit a741300

Browse files
jordan-d-murphypmhatre1
authored andcommitted
Updating timeseries.offset_aliases links to use :ref: format (pandas-dev#57581)
1 parent a3ccd96 commit a741300

File tree

8 files changed

+21
-22
lines changed

8 files changed

+21
-22
lines changed

pandas/core/generic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8569,8 +8569,8 @@ def asfreq(
85698569
85708570
Notes
85718571
-----
8572-
To learn more about the frequency strings, please see `this link
8573-
<https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`__.
8572+
To learn more about the frequency strings, please see
8573+
:ref:`this link<timeseries.offset_aliases>`.
85748574
85758575
Examples
85768576
--------

pandas/core/groupby/groupby.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3643,8 +3643,8 @@ def rolling(
36433643
If a timedelta, str, or offset, the time period of each window. Each
36443644
window will be a variable sized based on the observations included in
36453645
the time-period. This is only valid for datetimelike indexes.
3646-
To learn more about the offsets & frequency strings, please see `this link
3647-
<https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`__.
3646+
To learn more about the offsets & frequency strings, please see
3647+
:ref:`this link<timeseries.offset_aliases>`.
36483648
36493649
If a BaseIndexer subclass, the window boundaries
36503650
based on the defined ``get_window_bounds`` method. Additional rolling

pandas/core/groupby/grouper.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ class Grouper:
7979
freq : str / frequency object, defaults to None
8080
This will groupby the specified frequency if the target selection
8181
(via key or level) is a datetime-like object. For full specification
82-
of available frequencies, please see `here
83-
<https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`_.
82+
of available frequencies, please see :ref:`here<timeseries.offset_aliases>`.
8483
sort : bool, default to False
8584
Whether to sort the resulting labels.
8685
closed : {'left' or 'right'}

pandas/core/indexes/datetimes.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ class DatetimeIndex(DatetimeTimedeltaMixin):
246246
247247
Notes
248248
-----
249-
To learn more about the frequency strings, please see `this link
250-
<https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`__.
249+
To learn more about the frequency strings, please see
250+
:ref:`this link<timeseries.offset_aliases>`.
251251
252252
Examples
253253
--------
@@ -896,8 +896,8 @@ def date_range(
896896
``DatetimeIndex`` will have ``periods`` linearly spaced elements between
897897
``start`` and ``end`` (closed on both sides).
898898
899-
To learn more about the frequency strings, please see `this link
900-
<https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`__.
899+
To learn more about the frequency strings, please see
900+
:ref:`this link<timeseries.offset_aliases>`.
901901
902902
Examples
903903
--------
@@ -1083,8 +1083,8 @@ def bdate_range(
10831083
for ``bdate_range``. Use ``date_range`` if specifying ``freq`` is not
10841084
desired.
10851085
1086-
To learn more about the frequency strings, please see `this link
1087-
<https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`__.
1086+
To learn more about the frequency strings, please see
1087+
:ref:`this link<timeseries.offset_aliases>`.
10881088
10891089
Examples
10901090
--------

pandas/core/indexes/interval.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1004,8 +1004,8 @@ def interval_range(
10041004
``IntervalIndex`` will have ``periods`` linearly spaced elements between
10051005
``start`` and ``end``, inclusively.
10061006
1007-
To learn more about datetime-like frequency strings, please see `this link
1008-
<https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`__.
1007+
To learn more about datetime-like frequency strings, please see
1008+
:ref:`this link<timeseries.offset_aliases>`.
10091009
10101010
Examples
10111011
--------

pandas/core/indexes/period.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,8 @@ def period_range(
551551
Of the three parameters: ``start``, ``end``, and ``periods``, exactly two
552552
must be specified.
553553
554-
To learn more about the frequency strings, please see `this link
555-
<https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`__.
554+
To learn more about the frequency strings, please see
555+
:ref:`this link<timeseries.offset_aliases>`.
556556
557557
Examples
558558
--------

pandas/core/indexes/timedeltas.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ class TimedeltaIndex(DatetimeTimedeltaMixin):
109109
110110
Notes
111111
-----
112-
To learn more about the frequency strings, please see `this link
113-
<https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`__.
112+
To learn more about the frequency strings, please see
113+
:ref:`this link<timeseries.offset_aliases>`.
114114
115115
Examples
116116
--------
@@ -311,8 +311,8 @@ def timedelta_range(
311311
``TimedeltaIndex`` will have ``periods`` linearly spaced elements between
312312
``start`` and ``end`` (closed on both sides).
313313
314-
To learn more about the frequency strings, please see `this link
315-
<https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`__.
314+
To learn more about the frequency strings, please see
315+
:ref:`this link<timeseries.offset_aliases>`.
316316
317317
Examples
318318
--------

pandas/core/window/rolling.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -872,8 +872,8 @@ class Window(BaseWindow):
872872
If a timedelta, str, or offset, the time period of each window. Each
873873
window will be a variable sized based on the observations included in
874874
the time-period. This is only valid for datetimelike indexes.
875-
To learn more about the offsets & frequency strings, please see `this link
876-
<https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`__.
875+
To learn more about the offsets & frequency strings, please see
876+
:ref:`this link<timeseries.offset_aliases>`.
877877
878878
If a BaseIndexer subclass, the window boundaries
879879
based on the defined ``get_window_bounds`` method. Additional rolling

0 commit comments

Comments
 (0)