CBSE Class 12 Informatics Practices Question 37 of 167

Python Pandas — I — Question 2

Back to all questions
2
Question

Question 2

To create an empty Series object, you can use :

  1. pd.Series(empty)
  2. pd.Series(np.NaN)
  3. pd.Series( )
  4. all of these
Answer

pd.Series()

Reason — To create an empty Series object i.e., having no values, we can just use the Series() as: <Series Object> = pandas.Series().