S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which pandas function is used to create a DataFrame from a dictionary of lists?

  • (A) pd.DataFrame()
  • (B) pd.Series()
  • (C) pd.array()
  • (D) pd.dict()
  • Correct Answer - Option(A)
  • Views: 16
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey

pd.DataFrame() can take a dictionary where keys are column names and values are lists to create a DataFrame.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.