-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Add reference to frequency strings #13632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
02c44bb
7b7045a
fff5da7
b45ae21
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -312,6 +312,9 @@ class Window(_Window): | |
* ``gaussian`` (needs std) | ||
* ``general_gaussian`` (needs power, width) | ||
* ``slepian`` (needs width). | ||
|
||
To learn more about the frequency strings, please see `this link | ||
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you cannot supply offset ATM here, so remove this one There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to clarify, the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since |
||
""" | ||
|
||
def validate(self): | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -271,6 +271,9 @@ def rolling_count(arg, window, **kwargs): | |
The `freq` keyword is used to conform time series data to a specified | ||
frequency by resampling the data. This is done with the default parameters | ||
of :meth:`~pandas.Series.resample` (i.e. using the `mean`). | ||
|
||
To learn more about the frequency strings, please see `this link | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. these are all deprecated, but ok I guess. |
||
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__. | ||
""" | ||
return ensure_compat('rolling', 'count', arg, window=window, **kwargs) | ||
|
||
|
@@ -521,6 +524,9 @@ def rolling_quantile(arg, window, quantile, min_periods=None, freq=None, | |
The `freq` keyword is used to conform time series data to a specified | ||
frequency by resampling the data. This is done with the default parameters | ||
of :meth:`~pandas.Series.resample` (i.e. using the `mean`). | ||
|
||
To learn more about the frequency strings, please see `this link | ||
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__. | ||
""" | ||
return ensure_compat('rolling', | ||
'quantile', | ||
|
@@ -570,6 +576,9 @@ def rolling_apply(arg, window, func, min_periods=None, freq=None, | |
The `freq` keyword is used to conform time series data to a specified | ||
frequency by resampling the data. This is done with the default parameters | ||
of :meth:`~pandas.Series.resample` (i.e. using the `mean`). | ||
|
||
To learn more about the frequency strings, please see `this link | ||
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__. | ||
""" | ||
return ensure_compat('rolling', | ||
'apply', | ||
|
@@ -642,6 +651,9 @@ def rolling_window(arg, window=None, win_type=None, min_periods=None, | |
The `freq` keyword is used to conform time series data to a specified | ||
frequency by resampling the data. This is done with the default parameters | ||
of :meth:`~pandas.Series.resample` (i.e. using the `mean`). | ||
|
||
To learn more about the frequency strings, please see `this link | ||
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__. | ||
""" | ||
func = 'mean' if mean else 'sum' | ||
return ensure_compat('rolling', | ||
|
@@ -707,6 +719,9 @@ def expanding_count(arg, freq=None): | |
The `freq` keyword is used to conform time series data to a specified | ||
frequency by resampling the data. This is done with the default parameters | ||
of :meth:`~pandas.Series.resample` (i.e. using the `mean`). | ||
|
||
To learn more about the frequency strings, please see `this link | ||
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__. | ||
""" | ||
return ensure_compat('expanding', 'count', arg, freq=freq) | ||
|
||
|
@@ -735,6 +750,9 @@ def expanding_quantile(arg, quantile, min_periods=1, freq=None): | |
The `freq` keyword is used to conform time series data to a specified | ||
frequency by resampling the data. This is done with the default parameters | ||
of :meth:`~pandas.Series.resample` (i.e. using the `mean`). | ||
|
||
To learn more about the frequency strings, please see `this link | ||
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__. | ||
""" | ||
return ensure_compat('expanding', | ||
'quantile', | ||
|
@@ -818,6 +836,9 @@ def expanding_apply(arg, func, min_periods=1, freq=None, | |
The `freq` keyword is used to conform time series data to a specified | ||
frequency by resampling the data. This is done with the default parameters | ||
of :meth:`~pandas.Series.resample` (i.e. using the `mean`). | ||
|
||
To learn more about the frequency strings, please see `this link | ||
<http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases>`__. | ||
""" | ||
return ensure_compat('expanding', | ||
'apply', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the main one that is missed is
generic.resample
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also
generic.asfreq
actually there are quite a few more
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will find and add everywhere once the text is finalized.