A

Admin • 828.03K Points
Coach

Q. Which method converts a DataFrame to a NumPy array?

  • (A) df.to_numpy()
  • (B) df.to_array()
  • (C) df.as_matrix()
  • (D) df.values()
  • Correct Answer - Option(A)
  • Views: 9
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin
`to_numpy()` is the recommended way to convert a DataFrame to a NumPy array.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.