NumPy - Array Manipulation
Which of the following is the correct syntax to transpose a 2D NumPy array named
arr?arr?arr.transpose().transpose(arr) is incorrect because transpose is a method, not a standalone function here; arr.transpose misses parentheses; arr.transpose[] is invalid syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions