Home / CSE MCQs / Data Science Basics and Toolbox MCQs :: Discussion

Discussion :: Data Science Basics and Toolbox MCQs

  1. Which of the following takes a dict of dicts or a dict of array-like sequences and returns a DataFrame?
  2. A.
    DataFrame.from_items
    B.
    DataFrame.from_records
    C.
    DataFrame.from_dict
    D.
    All of the Mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    DataFrame.from_dict operates like the DataFrame constructor except for the orient parameter which is 'columns' by default.


Be The First To Comment