Use this tag for questions about specifying or selecting the correct information from a structure using indices.
Given the following vector, a = [1, 2, 3, 4, 5, 6, 7, 8, 9] I need to identify the indices of "a" whose elements are >= than 4, like this: …
python indexing logical-operators indicesarray = some kind of list with 3 columns and unlimited amount of rows with data inside of it. Volume = array[0][2] counter = 0 …
list python-3.x indices equivalentMy code below is giving me the following error "IndexError: too many indices for array". I am quite new to …
python arrays machine-learning indices data-scienceWhy can't I index an ndarray using a list of tuple indices like so? idx = [(x1, y1), ... (xn, yn)] X[…
numpy multidimensional-array indices