AttributeError: 'numpy.ndarray' object has no attribute 'median' : <p>I can perform a number of statistics on a numpy array but "median" returns an attribute error.  When I do a "dir(np)" I do see the median method listed.</p>

<pre><code>(newpy2) 7831c1c083a2:src scaldara$ python
Python 2.7.12 |Continuum Analytics, Inc.| (default, Jul  2 2016,   17:43:17) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)] on     darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org

&gt;&gt;&gt; import numpy as np
&gt;&gt;&gt; print(np.version.version)
1.11.2
&gt;&gt;&gt; a = np.array([1,2,3,4,5,6,7,8,9,10])
&gt;&gt;&gt; print(a)
[ 1  2  3  4  5  6  7  8  9 10]
&gt;&gt;&gt; print(a.min())
1
&gt;&gt;&gt; print(a.max())
10
&gt;&gt;&gt; print(a.mean())
5.5
&gt;&gt;&gt; print(a.std())
2.87228132327
&gt;&gt;&gt; print(a.median())
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
AttributeError: 'numpy.ndarray' object has no attribute 'median'
&gt;&gt;&gt; 
</code></pre>
