Q. Which method transposes rows and columns in a DataFrame?
β
Correct Answer: (C)
Both A and B
Explanation: Both transpose() and the T attribute transpose rows and columns of a DataFrame.