Hey all,

I couldn't find any code to do quantiles in Python. It seems like it
belongs in python-stats, and maybe other places like MLab or matplotlib.
But at least in python-stats. Put it there if you think it belongs.

I've attached the code. It's based on the documentation given in R for
help(quantile). It's pretty straightforward and works on the two
testcases I've supplied.

It doesn't handle missing values. At least, I have no reason to expect
it would.


quantile.py (1.85 KB)


Charles R. Twardy Monash University, School of CSSE
ctwardy at alumni indiana edu +61(3) 9905 5823 (w) 5146 (fax)
  "eloquence ought to be banish'd out of all civil Societies as a
   thing fatal to Peace and good Manners..." ~Sprat 1667