Run »
import numpy values = [13,21,21,40,42,48,55,72] x = numpy.quantile(values, [0,0.25,0.5,0.75,1]) print(x)
[13. 21. 41. 49.75 72. ]