KnowledgeBoat Logo
|

Informatics Practices

Which of the following can be used to specify the data while creating a dataframe?

  1. Series
  2. List of Dictionaries
  3. Structured ndarray
  4. All of these

Python Data Handling

1 Like

Answer

All of these

Reason — We can create a DataFrame object by passing data in many different ways, such as two-dimensional dictionaries (i.e., dictionaries having lists or dictionaries or ndarrays or series objects etc), two-dimensional ndarrays, series type object and another DataFrame object.

Answered By

1 Like


Related Questions