S

Sikhar Chaudhary • 5.88K Points
Tutor III

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: 40
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
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.


Question analytics