We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
quantile
1 parent d352d5a commit e552626Copy full SHA for e552626
pandas/core/series.py
@@ -2820,8 +2820,8 @@ def quantile(
2820
This optional parameter specifies the interpolation method to use,
2821
when the desired quantile lies between two data points `i` and `j`:
2822
2823
- * linear: `i + (j - i) * fraction`, where `fraction` is the
2824
- fractional part of the index surrounded by `i` and `j`.
+ * linear: `i + (j - i) * (x-i)/(j-i)`, where `(x-i)/(j-i)` is
+ the fractional part of the index surrounded by `i > j`.
2825
* lower: `i`.
2826
* higher: `j`.
2827
* nearest: `i` or `j` whichever is nearest.
0 commit comments