← 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?
- A.pd.DataFrame("students.csv")
- B.pd.open("students.csv")
- C.pd.read_excel("students.csv")
- 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 →