In pandas, what does df.shape return for a DataFrame df?
Show answerHide answer
Correct answer: (B) A tuple (rows, columns)
Explanation
shape gives (number of rows, number of columns).
Correct answer: (B) A tuple (rows, columns)
Explanation
shape gives (number of rows, number of columns).
This is question 144 of DSSSB TGT Computer Science Full Mock Test 1. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.