A

Admin • 828.03K Points
Coach

Q. Which of the following creates a DataFrame from a list of dictionaries?

  • (A) pd.DataFrame.from_dict(list_of_dicts)
  • (B) pd.DataFrame(list_of_dicts)
  • (C) pd.Series(list_of_dicts)
  • (D) pd.DictFrame(list_of_dicts)
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin
Passing a list of dicts to `pd.DataFrame()` creates a valid DataFrame.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.