Informatics Practices
To get a number representing number of axes in a dataframe, …………… attribute may be used.
- size
- shape
- values
- ndim
Python Pandas
1 Like
Answer
ndim
Reason — The ndim attribute will return an integer representing the number of axes/array dimensions.
Answered By
1 Like
Related Questions
To get the number of elements in a dataframe, …………… attribute may be used.
- size
- shape
- values
- ndim
To get NumPy representation of a dataframe, …………… attribute may be used.
- size
- shape
- values
- ndim
Which attribute is not used with DataFrame ?
- Size
- Type
- Empty
- Columns
To get the transpose of a dataframe D1, you can write …………… .
- D1.T
- D1.Transpose
- D1.Swap
- All of these