---
title: isNaN
description: "Column.isNaN method in PySpark: Check if the column value is NaN."
canonical_url: https://docs.databricks.com/gcp/en/pyspark/reference/classes/column/isNaN
---

# isNaN

Check if the column value is NaN.

## Syntax

```python
isNaN()
```

## Returns

Column (boolean)

## Examples

```python
from pyspark.sql import Row
df = spark.createDataFrame(
    [Row(name='Tom', height=80.0), Row(name='Alice', height=float('nan'))])
df.filter(df.height.isNaN()).collect()
```

```Output
# [Row(name='Alice', height=nan)]
```
