A data scientist has a 2D NumPy array representing daily sales data for 4 products over 6 days, with a shape of (6, 4). They need to transform this array so that each row represents a product and each column represents a day. Which of the following NumPy operations will correctly perform this transformation?
-
A
arr.reshape(4, 6)
-
B
np.transpose(arr)
-
C
np.ravel(arr)
-
D
np.vsplit(arr, 2)