I put together a sample if you are still interested. It uses scipy.stats.scoreatpercentile
, but you can get these numbers from other sources:
from random import random import numpy as np import matplotlib.pyplot as plt from scipy.stats import scoreatpercentile x = np.array([random() for x in xrange(100)])
maxm
source share