CBSE Class 12 Informatics Practices
Question 29 of 70
Importing/Exporting Data between CSV Files/MySQL and Pandas — Question 10
Back to all questionsindex_col
Reason — The argument given in read_csv() to use a column's values as index labels is index_col. By specifying index_col with the name of the desired column, pandas will use the values from that column as the index labels for the DataFrame.