S

Sikhar Chaudhary • 5.88K Points
Tutor III

Q. Which method converts a DataFrame to a dictionary?

  • (A) to_dict()
  • (B) to_json()
  • (C) to_array()
  • (D) as_dict()
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
The to_dict() method converts a DataFrame into a dictionary, with options for orientation.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics