A

Admin • 833.24K Points
Coach

Q. What is the effect of np.reshape(a, (1, -1))?

  • (A) Flattens the array
  • (B) Creates a 1D array
  • (C) Creates a row vector
  • (D) Creates a column vector
  • Correct Answer - Option(C)
  • Views: 21
  • Filed under category Numpy
  • Hashtags:

Explanation by: Admin

Reshape with (1, -1) returns a row vector (1 row, many columns).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.