diff --git a/pandas/_libs/window/aggregations.pyx b/pandas/_libs/window/aggregations.pyx index 0689a4a6e75f0..8191084da924f 100644 --- a/pandas/_libs/window/aggregations.pyx +++ b/pandas/_libs/window/aggregations.pyx @@ -1323,13 +1323,13 @@ def roll_apply(object obj, def roll_weighted_sum( const float64_t[:] values, const float64_t[:] weights, int minp -) -> np.ndaray: +) -> np.ndarray: return _roll_weighted_sum_mean(values, weights, minp, avg=0) def roll_weighted_mean( const float64_t[:] values, const float64_t[:] weights, int minp -) -> np.ndaray: +) -> np.ndarray: return _roll_weighted_sum_mean(values, weights, minp, avg=1)