Skip to content
masterclass Buddy

NumPy · Const

np.nan

numpy.nan is NumPy's IEEE 754 floating-point value for Not a Number. Use it to represent a NaN result and detect it with numpy.isnan.

Last updated

Syntax

numpy.nan

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • numpy.isnan
  • numpy.isfinite

Source: Constants — NumPy v2.5 Manual. Checked 2026-11-03.