🌐
NumPy
numpy.org › devdocs › reference › generated › numpy.isnan.html
numpy.isnan — NumPy v2.6.dev0 Manual
numpy.isnan(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature]) = <ufunc 'isnan'>#
Learn
This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference · This set of tutorials and educational materials is being developed in the numpy-tutorials repository, and is not a part of the NumPy source tree. The goal of this repository is to provide ...
Release notes
Fundamentals and usage · Advanced usage and interoperability
Constants
isnan : Shows which elements are Not a Number · isfinite : Shows which elements are finite (not one of Not a Number, positive infinity and negative infinity) Notes · NumPy uses the IEEE Standard for Binary Floating-Point for Arithmetic (IEEE 754). This means that Not a Number is not equivalent ...
Linear algebra
The NumPy linear algebra functions rely on BLAS and LAPACK to provide efficient low level implementations of standard linear algebra algorithms. Those libraries may be provided by NumPy itself using C versions of a subset of their reference implementations but, when possible, highly optimized ...
🌐
NumPy
numpy.org › doc › 2.1 › reference › generated › numpy.isnan.html
numpy.isnan — NumPy v2.1 Manual
>>> import numpy as np >>> np.isnan(np.nan) True >>> np.isnan(np.inf) False >>> np.isnan([np.log(-1.),1.,np.log(0)]) array([ True, False, False])
🌐
NumPy
numpy.org › doc › stable › reference › generated › numpy.isnan.html
numpy.isnan — NumPy v2.5 Manual
numpy.isnan(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature]) = <ufunc 'isnan'>#
🌐
NumPy
numpy.org › doc › 2.2 › reference › generated › numpy.isnan.html
numpy.isnan — NumPy v2.2 Manual
numpy.isnan(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature]) = <ufunc 'isnan'>#
🌐
NumPy
numpy.org › doc › 2.3 › reference › generated › numpy.isnan.html
numpy.isnan — NumPy v2.3 Manual
>>> import numpy as np >>> np.isnan(np.nan) True >>> np.isnan(np.inf) False >>> np.isnan([np.log(-1.),1.,np.log(0)]) array([ True, False, False])
🌐
GeeksforGeeks
geeksforgeeks.org › python › numpy-isnan-python
numpy.isnan() in Python - GeeksforGeeks
March 8, 2024 - The numpy.isnan() function tests element-wise whether it is NaN or not and returns the result as a boolean array.
🌐
Educative
educative.io › answers › what-is-numpyisnan-in-python
What is numpy.isnan() in Python?
numpy.isnan(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = <ufunc 'isnan'>
🌐
NumPy
numpy.org › doc › 2.0 › reference › generated › numpy.isnan.html
numpy.isnan — NumPy v2.0 Manual
numpy.isnan(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature]) = <ufunc 'isnan'>#
🌐
w3resource
w3resource.com › numpy › logic-functions › isnan.php
NumPy Logic functions: isnan() function - w3resource
May 2, 2026 - The isnan() function is used to test element-wise for NaN and return result as a boolean array. ... numpy.isnan(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = <ufunc 'isnan'>
Find elsewhere
🌐
NumPy
numpy.org › doc › 1.14 › reference › generated › numpy.isnan.html
numpy.isnan — NumPy v1.14 Manual
Test element-wise for NaN and return result as a boolean array · out : ndarray, None, or tuple of ndarray and None, optional
🌐
SciPy
docs.scipy.org › doc › numpy-1.10.1 › reference › generated › numpy.isnan.html
numpy.isnan — NumPy v1.10 Manual
numpy.isnan(x[, out]) = <ufunc 'isnan'>¶ · Test element-wise for NaN and return result as a boolean array. See also · isinf, isneginf, isposinf, isfinite · Notes · Numpy uses the IEEE Standard for Binary Floating-Point for Arithmetic (IEEE 754). This means that Not a Number is not equivalent ...
🌐
NumPy
numpy.org › doc › 1.25 › reference › generated › numpy.isnan.html
numpy.isnan — NumPy v1.25 Manual
numpy.isnan(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = <ufunc 'isnan'>#
🌐
Appdividend
appdividend.com › numpy-isnan
Numpy.isnan(): Tests NaN Values Element-wise
October 2, 2025 - For counting NaN values, you can use the np.sum() and np.isnan() methods. import numpy as np arr = np.array([11.0, np.nan, np.nan, 12.0]) print(np.sum(np.isnan(arr))) # Output: 2
🌐
NumPy
numpy.org › doc › 1.13 › reference › generated › numpy.isnan.html
numpy.isnan — NumPy v1.13 Manual
numpy.isnan(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = <ufunc 'isnan'>¶
🌐
GeeksforGeeks
geeksforgeeks.org › numpy-isnan-python
numpy.isnan() in Python - GeeksforGeeks
March 8, 2024 - The numpy.isnan() function tests element-wise whether it is NaN or not and returns the result as a boolean array.
🌐
NumPy
numpy.org › doc › 1.16 › reference › generated › numpy.isnan.html
numpy.isnan — NumPy v1.16 Manual
February 18, 2020 - numpy.isnan(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = <ufunc 'isnan'>¶
🌐
NumPy
numpy.org › doc › 1.15 › reference › generated › numpy.isnan.html
numpy.isnan — NumPy v1.15 Manual
numpy.isnan(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = <ufunc 'isnan'>¶
🌐
DataCamp
datacamp.com › home › tutorials › python › python nan: 4 ways to check for missing values in python
Python NaN: 4 Ways to Check for Missing Values in Python | DataCamp
February 15, 2024 - When dealing with missing values in Python, the approach largely depends on the data structure you're working with. NumPy's isnan() function is ideal for identifying NaNs in numeric arrays or single values, offering a straightforward and efficient solution.