A

Admin • 833.24K Points
Coach

Q. What does np.hstack([a, b]) do?

  • (A) Stacks arrays vertically
  • (B) Stacks arrays horizontally
  • (C) Multiplies arrays
  • (D) Sorts arrays
  • Correct Answer - Option(B)
  • Views: 20
  • Filed under category Numpy
  • Hashtags:

Explanation by: Admin

np.hstack() stacks arrays horizontally (column-wise).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.