CBSE Class 12 Informatics Practices
Question 66 of 167
Python Pandas — I — Question 31
Back to all questionsD1.T
Reason — We can transpose a DataFrame by swapping its indexes and columns using the attribute T, with the syntax DataFrame.T. Therefore, D1.T is used to get the transpose of a DataFrame D1.