🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: pandas Basics: all 10 questions

Quiz: pandas Basics · Question 10 of 10

How do you read a real CSV file called students.csv into a DataFrame?

How do you read a real CSV file called students.csv into a DataFrame?

  1. A.pd.DataFrame("students.csv")
  2. B.pd.open("students.csv")
  3. C.pd.read_excel("students.csv")
  4. D.pd.read_csv("students.csv")
Answer & explanation

Correct answer: pd.read_csv("students.csv")

The lesson used io.StringIO only to keep examples self-contained.

Can you get the rest right without peeking?

Take the timed Quiz: pandas Basics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →