CBSE Class 12 Informatics Practices Question 43 of 167

Python Pandas — I — Question 8

Back to all questions
8
Question

Question 8

To check if the Series object contains NaN values, ............... attribute is displayed.

  1. hasnans
  2. nbytes
  3. ndim
  4. dtype
Answer

hasnans

Reason — The hasnans attribute is used to check if a Series object contains some NaN value or not. The syntax is <Series object>.hasnans.