etna
etna copied to clipboard
add feature to MeanTransform
🚀 Feature Request
It is not possible to take average data for a certain period (start, stop). Important! The function "MeanTransform" takes data from future
Proposal
- [x] 1) First of all, I want data not taken from the future
- [x] 2) Add option to select averaging period
Test cases
No response
Additional context
Hello!
If you want for MeanTransform
not to use data for the current timestamp you can do it by applying MeanTransform
to lagged values.
In that case you create lagged values using LagTransform(in_column="column_name", lags=[my_lag], out_column="lag")
and then add MeanTransform(in_column=f"lag_{my_lag}", window=my_window)
.
Add option to select averaging period
Can you elaborate on this? We have window
parameter, isn't it enough?