isNull
Check if the column value is null.
Syntax
Python
isNull()
Returns
Column (boolean)
Examples
Python
from pyspark.sql import Row
df = spark.createDataFrame([Row(name='Tom', height=80), Row(name='Alice', height=None)])
df.filter(df.height.isNull()).collect()
Output
# [Row(name='Alice', height=None)]