Skip to content
Prev Previous commit
Next Next commit
ENH: rolling rank - reorder parameter list
reorder parameter list to match DataFrame.rank
  • Loading branch information
gsiano committed Sep 2, 2021
commit e692ce326bb50be47eee98ff8e22ae999d8c8a56
2 changes: 1 addition & 1 deletion pandas/core/window/rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ def quantile(self, quantile: float, interpolation: str = "linear", **kwargs):

return self._apply(window_func, name="quantile", **kwargs)

def rank(self, pct: bool = False, method: str = "average", ascending: bool = True, **kwargs):
def rank(self, method: str = "average", ascending: bool = True, pct: bool = False, **kwargs):
window_func = partial(
window_aggregations.roll_rank,
percentile=pct,
Expand Down