NumPy - Indexing and Slicing
What is wrong with this code snippet to select rows 1 to 3 and columns 0 to 2 from a NumPy array
data?
slice = data[1:3, 0:2]
data?
slice = data[1:3, 0:2]
1:31:3 selects rows 1 and 2 only, not row 3.0:215+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions