A

Admin • 802.91K Points
Coach

Q. Which of these will raise an error when passed to np.array()?

  • (A) [[1,2],[3,4]]
  • (B) [1,2,3]
  • (C) [[1,2],[3]]
  • (D) np.arange(5)
  • Correct Answer - Option(C)
  • Views: 3
  • Filed under category Numpy
  • Hashtags:

Explanation by: Admin
Jagged arrays like [[1,2],[3]] raise warnings or create object arrays.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.