pub fn rolling_median<T>(
    arr: &PrimitiveArray<T>,
    window_size: usize,
    min_periods: usize,
    center: bool,
    weights: Option<&[f64]>
) -> ArrayRefwhere
    T: NativeType + Sum + Zero + AddAssign + Copy + PartialOrd + ToPrimitive + NumCast + Default + Add<Output = T> + Sub<Output = T> + Div<Output = T> + Mul<Output = T> + IsFloat,