NumPy - Indexing and Slicing
Which of the following is the correct syntax to select all rows and columns 2 to 4 (inclusive start, exclusive end) from a NumPy array named
arr?arr?:, columns 2 to 4 means 2:5 because end is excluded.arr[:, 2:5] -> Option B15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions