Practice Test Geeks home

Data Science with Python NumPy Array Manipulation Questions and Answers

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?

Select your answer