Original post: http://stackoverflow.com/a/9858902/58129
Given this
1 2 3 4 5 | |
You can use the following code to extract data in the first and second column as such
1 2 3 4 5 6 | |
Slicing documentation: http://docs.scipy.org/doc/numpy/reference/arrays.indexing.html#basic-slicing