How do you transpose a matrix in NumPy using .T or np.transpose()?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how to transpose arrays in NumPy with the .T attribute and np.transpose, including explicit axis permutations for higher-dimensional arrays. Tests whether you know what the operation does to memory, views and strides, and how it treats 1-D arrays.