Which pandas function reads a CSV file into a DataFrame?
-
A
open_csv()
-
B
load_csv()
-
C
import_csv()
-
D
read_csv()
Correct answer
Correct answer
D. read_csv()
14 views
Explanation
read_csv() parses comma-separated files and returns a DataFrame.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ