Skip to content

Commit b45ae21

Browse files
committed
DOC: Add learn more text in generic and removed from window
1 parent fff5da7 commit b45ae21

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pandas/core/generic.py

+6
Original file line numberDiff line numberDiff line change
@@ -3938,6 +3938,9 @@ def asfreq(self, freq, method=None, how=None, normalize=False):
39383938
Returns
39393939
-------
39403940
converted : type of caller
3941+
3942+
To learn more about the frequency strings, please see `this link
3943+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
39413944
"""
39423945
from pandas.tseries.resample import asfreq
39433946
return asfreq(self, freq, method=method, how=how, normalize=normalize)
@@ -4009,6 +4012,9 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
40094012
range from 0 through 4. Defaults to 0
40104013
40114014
4015+
To learn more about the offset strings, please see `this link
4016+
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
4017+
40124018
Examples
40134019
--------
40144020

pandas/core/window.py

-3
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,6 @@ class Window(_Window):
312312
* ``gaussian`` (needs std)
313313
* ``general_gaussian`` (needs power, width)
314314
* ``slepian`` (needs width).
315-
316-
To learn more about the frequency strings, please see `this link
317-
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__.
318315
"""
319316

320317
def validate(self):

0 commit comments

Comments
 (0)