NumPy - Indexing and Slicing
You have a 2D NumPy array representing a grid of values. How can you use fancy indexing with integer arrays to extract the diagonal elements?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions