A

Admin • 802.91K Points
Coach

Q. Which method converts a DataFrame to a dictionary?

  • (A) df.to_map()
  • (B) df.as_dict()
  • (C) df.to_dict()
  • (D) df.convert_dict()
  • Correct Answer - Option(C)
  • Views: 3
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin
`to_dict()` converts the DataFrame to a Python dictionary.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.