Description
Feature Type
-
Adding new functionality to pandas
-
Changing existing functionality in pandas
-
Removing existing functionality in pandas
Problem Description
As of V2 in the code and in the documentation, the quantile method and the rolling quantile method take a different variable for the quantile to be calculated.
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.quantile.html
https://pandas.pydata.org/docs/reference/api/pandas.core.window.rolling.Rolling.quantile.html
where we have:
q float for the former (quantile) and
quantile float for the latter (rolling.quantile).
I feel like this is unnecessary and provides a small mental overhead.
I propose that it should be changed to being consistent. Not sure which is better, perhaps q as used in quantile and is shorter but clear.
Feature Description
def rolling.quantile(self,
q,
....):
Alternative Solutions
quantile = q
Additional Context
No response