How can I get descriptive statistics of a NumPy array?
<p>I use the following code to create a numpy-ndarray. The file has 9 columns. I explicitly type each column:</p>

<pre><code>dataset = np.genfromtxt("data.csv", delimiter=",",dtype=('|S1', float, float,float,float,float,float,float,int))
</code></pre>

<p>Now I would like to get some descriptive statistics for each column (min, max, stdev, mean, median, etc.). Shouldn't there be an easy way to do this?</p>

<p>I tried this:</p>

<pre><code>from scipy import stats
stats.describe(dataset)
</code></pre>

<p>but this returns an error: <code>TypeError: cannot perform reduce with flexible type</code></p>

<p>How can I get descriptive statistics of the created NumPy array?</p>