Informatics Practices
Which attribute of dataframe is used to perform the transpose operation on a dataframe?
- T
- Ndim
- Empty
- Shape
Python Data Handling
2 Likes
Answer
T
Reason — The T attribute of DataFrame is used to perform transpose operation on a DataFrame. The syntax is : <DataFrame>.T.
Answered By
3 Likes
Related Questions
In a dataframe, axis = 0 is for
- Columns
- Rows
- Rows and Columns both
- None of these
Which of the following statements is false?
- Dataframe is size-mutable.
- Dataframe is values-mutable.
- Dataframe is immutable.
- Dataframe is capable of holding multiple types of data.
Which attribute of dataframe is used to retrieve its shape?
- T
- Ndim
- Empty
- Shape
Which attribute of dataframe is used to get number of axes?
- T
- Ndim
- Empty
- Shape