Performs a Rolling Aggregate on the input data according to specifications.
Given:
df_artifact
: Input DataFramekeys
: Labels to work bymetrics
: List of metrics to perform the aggregate task onlabels
: List of labels to perform the label aggregate onmetric_aggs
: Array of aggregations to run on the metrics
ex:['mean', 'sum']
label_aggs
: Array of aggregations to run on the labels
ex:['max']
suffix
: A suffix to add to the aggregations (ex: '_daily')window
: Window size, can beint
for number of rows, or in time interval string if timestamp index is availablecenter
: Perform aggregation on the sample at the window's centerinplace
:- True: Returns only the newly aggregated data
- False: Returns the newly aggregated data with the original dataset