Question 144

In pandas, what does df.shape return for a DataFrame df?

  1. AColumn names
  2. BA tuple (rows, columns)
  3. CData types of columns
  4. DNumber of rows only
Show answerHide answer

Correct answer: (B) A tuple (rows, columns)

Explanation

shape gives (number of rows, number of columns).

From DSSSB TGT Computer Science Full Mock Test 1

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.