1. Home
  2. Data Science
  3. Pandas
  4. What information does df.shape provide?

Added 30 Nov -0001

What information does df.shape provide?

  1. The memory used in bytes
  2. The dtype of every column
  3. The count of non-null entries
  4. The number of rows and columns Correct answer

Correct answer

D. The number of rows and columns

14 views

MCQSEXAM

Explanation

shape is a tuple giving (number of rows, number of columns) for the frame.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Pandas MCQs

Practise all Pandas MCQs

Similar MCQs