Exponentially Weighted Moment (EWM) 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`
(trendline_options, x_raw, x, y, x_label, y_label, non_missing)
| 160 | |
| 161 | |
| 162 | def ewm(trendline_options, x_raw, x, y, x_label, y_label, non_missing): |
| 163 | """Exponentially Weighted Moment (EWM) trendline function |
| 164 | |
| 165 | The value of the `function` key of the `trendline_options` dict is the function to |
| 166 | use (defaults to `mean`) and the value of the `function_args` key are taken to be |
| 167 | its arguments as a dict. The remainder of the `trendline_options` dict is passed as |
| 168 | keyword arguments into the `pandas.Series.ewm` function. |
| 169 | """ |
| 170 | return _pandas("ewm", trendline_options, x_raw, y, non_missing) |