CBSE Class 12 Informatics Practices Question 31 of 101

Python Pandas — II — Question 7

Back to all questions
7
Question

Question 7

To skip NaN values in a calculation, you can specify ............... attribute.

  1. NaN
  2. NA
  3. skipna
  4. all of these
Answer

skipna

Reason — The skipna attribute in Pandas is used to skip (exclude) NaN, NA, or null values when performing calculations.