Skip to content

Commit

Permalink
DOC: Improve quantile docstring (#56457)
Browse files Browse the repository at this point in the history
DOC: improve quantile docstring
  • Loading branch information
linus-md authored Dec 11, 2023
1 parent d352d5a commit e552626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -2820,8 +2820,8 @@ def quantile(
This optional parameter specifies the interpolation method to use,
when the desired quantile lies between two data points `i` and `j`:
* linear: `i + (j - i) * fraction`, where `fraction` is the
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`.
* lower: `i`.
* higher: `j`.
* nearest: `i` or `j` whichever is nearest.
Expand Down

0 comments on commit e552626

Please sign in to comment.