Informatics Practices

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

Python Pandas

1 Like

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.

Answered By

1 Like


Related Questions