1. Home
  2. Data Science
  3. NumPy
  4. What does the np.nan represent in NumPy?

Added 25 Feb 2024

What does the np.nan represent in NumPy?

  1. Positive infinity
  2. Negative infinity
  3. Not a Number (NaN) Correct answer
  4. Undefined value

Correct answer

C. Not a Number (NaN)

16 views

MCQSEXAM

Explanation

np.nan represents a "Not a Number" value, which is used to represent undefined or missing data in numerical arrays. It is often encountered in computations involving invalid or undefined operations.

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More NumPy MCQs

Practise all NumPy MCQs

Similar MCQs