S

Sikhar Chaudhary • 5.88K Points
Tutor III

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

  • (A) to_numpy()
  • (B) asarray()
  • (C) array()
  • (D) values()
  • Correct Answer - Option(A)
  • Views: 131
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
The to_numpy() method returns the DataFrame as a NumPy array, preserving the data values.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics