Skip to content

Commit fff5da7

Browse files
committed
Fix links and text for reference
1 parent 7b7045a commit fff5da7

File tree

5 files changed

+29
-29
lines changed

5 files changed

+29
-29
lines changed

doc/source/timeseries.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ DateOffset objects
567567
------------------
568568

569569
In the preceding examples, we created DatetimeIndex objects at various
570-
frequencies by passing in :ref: `frequency strings <timeseries.offset_aliases>`
570+
frequencies by passing in :ref:`frequency strings <timeseries.offset_aliases>`
571571
like 'M', 'W', and 'BM to the ``freq`` keyword. Under the hood, these frequency
572572
strings are being translated into an instance of pandas ``DateOffset``,
573573
which represents a regular frequency increment. Specific offset logic like

pandas/core/window.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ class Window(_Window):
313313
* ``general_gaussian`` (needs power, width)
314314
* ``slepian`` (needs width).
315315
316-
To know more about the frequency strings (offset aliases), please visit this
317-
link - http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases.
316+
To learn more about the frequency strings, please see `this link
317+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
318318
"""
319319

320320
def validate(self):

pandas/stats/moments.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ def rolling_count(arg, window, **kwargs):
272272
frequency by resampling the data. This is done with the default parameters
273273
of :meth:`~pandas.Series.resample` (i.e. using the `mean`).
274274
275-
To know more about the frequency strings (offset aliases), please visit this
276-
link - http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases.
275+
To learn more about the frequency strings, please see `this link
276+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
277277
"""
278278
return ensure_compat('rolling', 'count', arg, window=window, **kwargs)
279279

@@ -525,8 +525,8 @@ def rolling_quantile(arg, window, quantile, min_periods=None, freq=None,
525525
frequency by resampling the data. This is done with the default parameters
526526
of :meth:`~pandas.Series.resample` (i.e. using the `mean`).
527527
528-
To know more about the frequency strings (offset aliases), please visit this
529-
link - http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases.
528+
To learn more about the frequency strings, please see `this link
529+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
530530
"""
531531
return ensure_compat('rolling',
532532
'quantile',
@@ -577,8 +577,8 @@ def rolling_apply(arg, window, func, min_periods=None, freq=None,
577577
frequency by resampling the data. This is done with the default parameters
578578
of :meth:`~pandas.Series.resample` (i.e. using the `mean`).
579579
580-
To know more about the frequency strings (offset aliases), please visit this
581-
link - http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases.
580+
To learn more about the frequency strings, please see `this link
581+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
582582
"""
583583
return ensure_compat('rolling',
584584
'apply',
@@ -652,8 +652,8 @@ def rolling_window(arg, window=None, win_type=None, min_periods=None,
652652
frequency by resampling the data. This is done with the default parameters
653653
of :meth:`~pandas.Series.resample` (i.e. using the `mean`).
654654
655-
To know more about the frequency strings (offset aliases), please visit this
656-
link - http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases.
655+
To learn more about the frequency strings, please see `this link
656+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
657657
"""
658658
func = 'mean' if mean else 'sum'
659659
return ensure_compat('rolling',
@@ -720,8 +720,8 @@ def expanding_count(arg, freq=None):
720720
frequency by resampling the data. This is done with the default parameters
721721
of :meth:`~pandas.Series.resample` (i.e. using the `mean`).
722722
723-
To know more about the frequency strings (offset aliases), please visit this
724-
link - http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases.
723+
To learn more about the frequency strings, please see `this link
724+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
725725
"""
726726
return ensure_compat('expanding', 'count', arg, freq=freq)
727727

@@ -751,8 +751,8 @@ def expanding_quantile(arg, quantile, min_periods=1, freq=None):
751751
frequency by resampling the data. This is done with the default parameters
752752
of :meth:`~pandas.Series.resample` (i.e. using the `mean`).
753753
754-
To know more about the frequency strings (offset aliases), please visit this
755-
link - http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases.
754+
To learn more about the frequency strings, please see `this link
755+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
756756
"""
757757
return ensure_compat('expanding',
758758
'quantile',
@@ -837,8 +837,8 @@ def expanding_apply(arg, func, min_periods=1, freq=None,
837837
frequency by resampling the data. This is done with the default parameters
838838
of :meth:`~pandas.Series.resample` (i.e. using the `mean`).
839839
840-
To know more about the frequency strings (offset aliases), please visit this
841-
link - http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases.
840+
To learn more about the frequency strings, please see `this link
841+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
842842
"""
843843
return ensure_compat('expanding',
844844
'apply',

pandas/tseries/index.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ class DatetimeIndex(DatelikeOps, TimelikeOps, DatetimeIndexOpsMixin,
179179
name : object
180180
Name to be stored in the index
181181
182-
To know more about the frequency strings (offset aliases), please visit this
183-
link - http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases.
182+
To learn more about the frequency strings, please see `this link
183+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
184184
"""
185185

186186
_typ = 'datetimeindex'
@@ -2074,8 +2074,8 @@ def date_range(start=None, end=None, periods=None, freq='D', tz=None,
20742074
-----
20752075
2 of start, end, or periods must be specified
20762076
2077-
To know more about the frequency strings (offset aliases), please visit this
2078-
link - http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases.
2077+
To learn more about the frequency strings, please see `this link
2078+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
20792079
20802080
Returns
20812081
-------
@@ -2117,8 +2117,8 @@ def bdate_range(start=None, end=None, periods=None, freq='B', tz=None,
21172117
-----
21182118
2 of start, end, or periods must be specified
21192119
2120-
To know more about the frequency strings (offset aliases), please visit this
2121-
link - http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases.
2120+
To learn more about the frequency strings, please see `this link
2121+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
21222122
21232123
Returns
21242124
-------
@@ -2171,8 +2171,8 @@ def cdate_range(start=None, end=None, periods=None, freq='C', tz=None,
21712171
-----
21722172
2 of start, end, or periods must be specified
21732173
2174-
To know more about the frequency strings (offset aliases), please visit this
2175-
link - http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases.
2174+
To learn more about the frequency strings, please see `this link
2175+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
21762176
21772177
Returns
21782178
-------

pandas/tseries/tdi.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ class TimedeltaIndex(DatetimeIndexOpsMixin, TimelikeOps, Int64Index):
102102
name : object
103103
Name to be stored in the index
104104
105-
To know more about the frequency strings (offset aliases), please visit this
106-
link - http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases.
105+
To learn more about the frequency strings, please see `this link
106+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
107107
"""
108108

109109
_typ = 'timedeltaindex'
@@ -1005,8 +1005,8 @@ def timedelta_range(start=None, end=None, periods=None, freq='D',
10051005
-------
10061006
rng : TimedeltaIndex
10071007
1008-
To know more about the frequency strings (offset aliases), please visit this
1009-
link - http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases.
1008+
To learn more about the frequency strings, please see `this link
1009+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
10101010
"""
10111011
return TimedeltaIndex(start=start, end=end, periods=periods,
10121012
freq=freq, name=name,

0 commit comments

Comments
 (0)