CBSE Class 12 Informatics Practices Question 70 of 167

Python Pandas — I — Question 35

Back to all questions
35
Question

Question 35

Which among the following options can be used to create a DataFrame in Pandas ?

  1. A scalar value
  2. An ndarray
  3. A python dict
  4. All of these
Answer

All of these

Reason — We can create a DataFrame object in Pandas by passing data in many different ways, such as a scalar value, an ndarray and a Python dictionary.