CBSE Class 12 Informatics Practices Question 12 of 40

Practice Paper — Question 12

Back to all questions
12
Question

Question 12

In Python Pandas, while performing mathematical operations on series, index matching is implemented and all missing values are filled in with ............... by default.

  1. Null
  2. Blank
  3. NaN
  4. Zero
Answer

NaN

Reason — When performing mathematical operations on pandas Series objects, index matching is implemented (this is called data alignment in Pandas objects), and missing values are filled with NaN (Not a Number) by default.