Python - Read Columns With Numpy
<p>I have a file with lets say with the following X,Y,Z columns</p>

<pre><code>#file.csv
X,Y,Z
1,2,3
4,2,5
15,9,1
#
</code></pre>

<p>I am trying to use numpy to read column X and give me the average, standard deviation and other statistics.
I cant get numpy to read them as columns like I want.</p>

<pre><code>import numpy as np
import math 
my_data = np.genfromtxt(filename, delimiter=',', dtype=float, names=[x,y,z])
</code></pre>

<p>if I do something like <code>np.average(my_data)</code> it is averaging every row instead of every column.
How can I make it average X, Y and Z  and  then print them out in a file? </p>

<p>And X have long numbers like 2747477447437.959843848 and I don't want to round them. These are IDs and should not be changed at all! How can I achieve this?</p>
