Skip to content

Commit e552626

Browse files
authored
DOC: Improve quantile docstring (#56457)
DOC: improve quantile docstring
1 parent d352d5a commit e552626

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/series.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2820,8 +2820,8 @@ def quantile(
28202820
This optional parameter specifies the interpolation method to use,
28212821
when the desired quantile lies between two data points `i` and `j`:
28222822
2823-
* linear: `i + (j - i) * fraction`, where `fraction` is the
2824-
fractional part of the index surrounded by `i` and `j`.
2823+
* linear: `i + (j - i) * (x-i)/(j-i)`, where `(x-i)/(j-i)` is
2824+
the fractional part of the index surrounded by `i > j`.
28252825
* lower: `i`.
28262826
* higher: `j`.
28272827
* nearest: `i` or `j` whichever is nearest.

0 commit comments

Comments
 (0)