[Pandas-dev] Changing `interpolation` to `method` for quantile and percentile?

Jeff Reback jeffreback at gmail.com
Wed Nov 10 12:37:27 EST 2021


no objection 

> On Nov 10, 2021, at 12:36 PM, Sebastian Berg <sebastian at sipsolutions.net> wrote:
> 
> Hi all,
> 
> at NumPy, I would like to rename quantile's `interpolation=` to
> `method=` and add a DeprecationWarning for it.
> But I realize that probably much more people use it through pandas than
> NumPy itself, so wondering if you have any inputs on it:
> 
>    https://github.com/numpy/numpy/pull/20327
> 
> The reasons are:
> * interpolation was a reasonable name for variations of the default
>  method.  But, we added new methods (same as R's) and for those
>  it does not quite fit.  `method` is more descriptive.
> * I feel quite a few users might better of using a different method
>  (if they did not use the default).  This would nudge them to
>  review the code.
> * Python's `statistics.quantils` uses `method` (although we do not
>  offer the *same* names for the methods right now!)
> 
> But, if you think it is not worth the churn/noise, I could consider
> just sticking with `interpolation` for now, or delay giving a
> `DeprecationWarning`.
> 
> Cheers,
> 
> Sebastian
> _______________________________________________
> Pandas-dev mailing list
> Pandas-dev at python.org
> https://mail.python.org/mailman/listinfo/pandas-dev


More information about the Pandas-dev mailing list