Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which of the following takes a dict of dicts or a dict of array-like sequences and returns a DataFrame?

a) DataFrame.from_items
b) DataFrame.from_records
c) DataFrame.from_dict
d) all of the mentioned

Answer: a
Explanation: DataFrame.from_dict operates like the DataFrame constructor except for the orient parameter which is ‘columns’ by default.

Join The Discussion