Q. Which method converts a DataFrame to a dictionary?
β
Correct Answer: (A)
to_dict()
Explanation: The to_dict() method converts a DataFrame into a dictionary, with options for orientation.