Match List-I with List-II
List-I List-II (A). to_csv( ) (I). Specifies the column labels. (B). read_csv( ) (II). Saves the file as .csv to a memory location. (C). Header (III). Reads the file from a memory location. (D). Sep (IV). Specifies the delimiter for values.
Match List-I with List-II
| List-I | List-II |
|---|---|
| (A). to_csv( ) | (I). Specifies the column labels. |
| (B). read_csv( ) | (II). Saves the file as .csv to a memory location. |
| (C). Header | (III). Reads the file from a memory location. |
| (D). Sep | (IV). Specifies the delimiter for values. |
Solution
✅ Correct Option: 2
| List I | List II |
|---|---|
| (A) to_csv( ) | (II) Saves the file as .csv to a memory location |
| (B) read_csv( ) | (III) Reads the file from a memory location |
| (C) Header | (I) Specifies the column labels |
| (D) Sep | (IV) Specifies the delimiter for values |
to_csv( ) writes a DataFrame out to a file, while read_csv( ) loads a file into a DataFrame.
The default for sep is a comma, and header=0 takes the first row of the file as the column labels.
Related questions:
2025: 21 May Shift 1
2025: 13 May Shift 2
2026: 13 May Shift 2
2025: 3 June Shift 2