Comment Comment by andrewla scipy even has a built-in method (scipy.stats.ecdf) for doing exactly this. parent andrewla 2 years ago