What information does df.shape provide?
-
A
The memory used in bytes
-
B
The dtype of every column
-
C
The count of non-null entries
-
D
The number of rows and columns
Correct answer
Correct answer
D. The number of rows and columns
14 views
Explanation
shape is a tuple giving (number of rows, number of columns) for the frame.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ