Cythonized GroupBy Quantile by WillAyd · Pull Request #20405 · pandas-dev/pandas (original) (raw)

I started this change with the intention of fully Cythonizing the GroupBy describe method, but along the way realized it was worth implementing a Cythonized GroupBy quantile function first. In theory we could concat together count, mean, std, min, median, max, and two quantile calls (one for 25% and the other for 75%) to get describe.

I decided to push this up as is because this alone is a decent amount of work and I think is worth getting reviewed before going further.

Relevant ASVs provided below:

   before           after         ratio
 [4a43815d]       [d7aec3fa]