Q. Which method is used to set a column as the index of a DataFrame?
β
Correct Answer: (A)
set_index()
Explanation: set_index() sets one or more columns as the index of the DataFrame.