(self, constructor, window, dtype, percentile, ascending, method)
| 251 | ] |
| 252 | |
| 253 | def setup(self, constructor, window, dtype, percentile, ascending, method): |
| 254 | N = 10**5 |
| 255 | arr = np.random.random(N).astype(dtype) |
| 256 | self.roll = getattr(pd, constructor)(arr).rolling(window) |
| 257 | |
| 258 | def time_rank(self, constructor, window, dtype, percentile, ascending, method): |
| 259 | self.roll.rank(pct=percentile, ascending=ascending, method=method) |