Rolling trendline function The value of the `function` key of the `trendline_options` dict is the function to use (defaults to `mean`) and the value of the `function_args` key are taken to be its arguments as a dict. The remainder of the `trendline_options` dict is passed as keywor
(trendline_options, x_raw, x, y, x_label, y_label, non_missing)
| 138 | |
| 139 | |
| 140 | def rolling(trendline_options, x_raw, x, y, x_label, y_label, non_missing): |
| 141 | """Rolling trendline function |
| 142 | |
| 143 | The value of the `function` key of the `trendline_options` dict is the function to |
| 144 | use (defaults to `mean`) and the value of the `function_args` key are taken to be |
| 145 | its arguments as a dict. The remainder of the `trendline_options` dict is passed as |
| 146 | keyword arguments into the `pandas.Series.rolling` function. |
| 147 | """ |
| 148 | return _pandas("rolling", trendline_options, x_raw, y, non_missing) |
| 149 | |
| 150 | |
| 151 | def expanding(trendline_options, x_raw, x, y, x_label, y_label, non_missing): |