You have to slice the array to the col you want to index: rows = np.where(t[:,3] == 'bar') result = t[rows]. This returns: [[2,3,4,'bar'], ...
確定! 回上一頁