Closed
Description
import pandas as pd
import numpy as np
constructor = "Series"
window = 1000
dtype = "int"
percentile = 1
interpolation = "linear"
N = 10 ** 5
arr = np.random.random(N).astype(dtype)
roll = getattr(pd, constructor)(arr).rolling(window)
%timeit roll.quantile(percentile, interpolation=interpolation)
Seems to be from #33693 (cc @s-scherrer).
Interestingly, I'm not able to reproduce this locally. Is anyone else able to?
# 1.0.2
3.16 ms ± 295 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
# master
2.27 ms ± 56.5 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)