extra a column from a 2-D array?
Joe Wong
joewong at mango.cc
Tue May 10 04:01:58 EDT 2005
Hello,
Suppose I have a python array as follow:
s=[ [1,3,5],
[2,4,6],
[9,8,7]]
what is the quickest way to extract the second colum from all rows? That is: [3,4,8] in this example.
Best regards,
- Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050510/4f596e4d/attachment.html>
-------------- next part --------------
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.7 - Release Date: 2005/5/9
More information about the Python-list
mailing list