diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 668672ed05f72..0880e6730fd93 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8569,8 +8569,8 @@ def asfreq( Notes ----- - To learn more about the frequency strings, please see `this link - `__. + To learn more about the frequency strings, please see + :ref:`this link`. Examples -------- diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 7c9fe0df9d022..668c9863612d8 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -3643,8 +3643,8 @@ def rolling( If a timedelta, str, or offset, the time period of each window. Each window will be a variable sized based on the observations included in the time-period. This is only valid for datetimelike indexes. - To learn more about the offsets & frequency strings, please see `this link - `__. + To learn more about the offsets & frequency strings, please see + :ref:`this link`. If a BaseIndexer subclass, the window boundaries based on the defined ``get_window_bounds`` method. Additional rolling diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index 9179bec86f660..1578bde0781ef 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -79,8 +79,7 @@ class Grouper: freq : str / frequency object, defaults to None This will groupby the specified frequency if the target selection (via key or level) is a datetime-like object. For full specification - of available frequencies, please see `here - `_. + of available frequencies, please see :ref:`here`. sort : bool, default to False Whether to sort the resulting labels. closed : {'left' or 'right'} diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 282a11122211b..b7d2437cbaa44 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -246,8 +246,8 @@ class DatetimeIndex(DatetimeTimedeltaMixin): Notes ----- - To learn more about the frequency strings, please see `this link - `__. + To learn more about the frequency strings, please see + :ref:`this link`. Examples -------- @@ -896,8 +896,8 @@ def date_range( ``DatetimeIndex`` will have ``periods`` linearly spaced elements between ``start`` and ``end`` (closed on both sides). - To learn more about the frequency strings, please see `this link - `__. + To learn more about the frequency strings, please see + :ref:`this link`. Examples -------- @@ -1083,8 +1083,8 @@ def bdate_range( for ``bdate_range``. Use ``date_range`` if specifying ``freq`` is not desired. - To learn more about the frequency strings, please see `this link - `__. + To learn more about the frequency strings, please see + :ref:`this link`. Examples -------- diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index 7695193a15608..ea3e848356ab5 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -1004,8 +1004,8 @@ def interval_range( ``IntervalIndex`` will have ``periods`` linearly spaced elements between ``start`` and ``end``, inclusively. - To learn more about datetime-like frequency strings, please see `this link - `__. + To learn more about datetime-like frequency strings, please see + :ref:`this link`. Examples -------- diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 4aee8293049f1..edd1fdd4da943 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -551,8 +551,8 @@ def period_range( Of the three parameters: ``start``, ``end``, and ``periods``, exactly two must be specified. - To learn more about the frequency strings, please see `this link - `__. + To learn more about the frequency strings, please see + :ref:`this link`. Examples -------- diff --git a/pandas/core/indexes/timedeltas.py b/pandas/core/indexes/timedeltas.py index 485c7a1ce08cd..a929687544876 100644 --- a/pandas/core/indexes/timedeltas.py +++ b/pandas/core/indexes/timedeltas.py @@ -109,8 +109,8 @@ class TimedeltaIndex(DatetimeTimedeltaMixin): Notes ----- - To learn more about the frequency strings, please see `this link - `__. + To learn more about the frequency strings, please see + :ref:`this link`. Examples -------- @@ -311,8 +311,8 @@ def timedelta_range( ``TimedeltaIndex`` will have ``periods`` linearly spaced elements between ``start`` and ``end`` (closed on both sides). - To learn more about the frequency strings, please see `this link - `__. + To learn more about the frequency strings, please see + :ref:`this link`. Examples -------- diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py index aa55dd41f0997..ac2c10447dee9 100644 --- a/pandas/core/window/rolling.py +++ b/pandas/core/window/rolling.py @@ -872,8 +872,8 @@ class Window(BaseWindow): If a timedelta, str, or offset, the time period of each window. Each window will be a variable sized based on the observations included in the time-period. This is only valid for datetimelike indexes. - To learn more about the offsets & frequency strings, please see `this link - `__. + To learn more about the offsets & frequency strings, please see + :ref:`this link`. If a BaseIndexer subclass, the window boundaries based on the defined ``get_window_bounds`` method. Additional rolling