1. Home
  2. Data Science
  3. Pandas
  4. What does the shape attribute of a DataFrame return?

Added 30 Nov -0001

What does the shape attribute of a DataFrame return?

  1. the data types of columns
  2. the number of missing values
  3. a tuple of rows and columns Correct answer
  4. the column names

Correct answer

C. a tuple of rows and columns

17 views

MCQSEXAM

Explanation

shape returns (rows, columns); dtypes returns the column types.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? 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