I was trying to understand lower/upper percentiles calculation in pandas and got a bit confused. Here is the sample code and output for it.
test = pd.Series([7, 15, 36, 39, 40, 41])
test.describe()
output:
I am interested in only 25%, 75% percentiles. I wonder which method does pandas use to calculate them?
Referring to https://en.wikipedia.org/wiki/Quartile the article, results are different as following:
So what statistical/mathematical method does pandas uses to calculate percentile?