def iqr(a):
 a = np.asarray(a)
 q1 = stats.scoreatpercentile(a, 25)
 q3 = stats.scoreatpercentile(a, 75)
 return (q3 - q1)

def iqr ( a ) : a = np . asarray ( a ) q1 = stats . scoreatpercentile ( a , 25 ) q3 = stats . scoreatpercentile ( a , 75 ) return ( q3 - q1 )
compute the interquartile range of the data along the specified axis .