Category "weighted-average"

calculate weighted average over several columns with NA

I have a data frame like this one: ID duration1 duration2 total_duration quantity1 quantity2 1 5 2 7 3 1

Apply a weighted decay that changes over time in Python

I have a dataframe in Python that looks like the one below: I want to calculate the dnf_rate_weighted so that there's a 0.95 decay for each stage going back th

Presto Weighted Moving Average Syntax Error

I'm trying to run the weighted moving average Silota query with similar data in a Presto database but am encountering an error. The same query in the Redshift d