etna icon indicating copy to clipboard operation
etna copied to clipboard

add feature to MeanTransform

Open TsoyAlV opened this issue 1 year ago • 1 comments

🚀 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

image

TsoyAlV avatar Jul 22 '23 20:07 TsoyAlV

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?

Mr-Geekman avatar Jul 26 '23 09:07 Mr-Geekman