Q. Which method is used to rename columns in a pandas DataFrame?
β
Correct Answer: (B)
rename()
Explanation: The rename() method allows you to rename columns or index labels in a DataFrame using a dictionary mapping.