1.

Which of the following works analogously to the form of the dict constructor?(a) DataFrame.from_items(b) DataFrame.from_records(c) DataFrame.from_dict(d) All of the mentionedThe question was asked in quiz.This intriguing question comes from Pandas Data Structure in division Data Analysis with Python of Data Science

Answer»

Right ANSWER is (a) DataFrame.from_items

Easy EXPLANATION - DataFrame.from_records TAKES a list of tuples or an ndarray with structured dtype.



Discussion

No Comment Found

Related InterviewSolutions