[SciPy-user] array manipulation

Nils Wagner nwagner@iam.uni-stuttgart...
Thu Oct 23 09:02:25 CDT 2008


Hi all,

>>> M
array([[1025338,       1,       1,       1],
        [1036103,       1,       1,       1],
        [2008297,       1,       1,       1],
        [2086888,       0,       0,       1],
        [2127079,       1,       0,       0],
        [2157100,       0,       1,       0],
        [2157969,       1,       1,       1],
        [2222852,       1,       0,       1]])
>>> 1025338 in M[:,0]
True
>>> 2157100 in M[:,0]
True

How can I obtain the row index of numbers that belong
to M ?

Nils


More information about the SciPy-user mailing list