Compartilhar via


Isnull

Verifique se o valor da coluna é nulo.

Sintaxe

isNull()

Devoluções

Coluna (booliano)

Exemplos

from pyspark.sql import Row
df = spark.createDataFrame([Row(name='Tom', height=80), Row(name='Alice', height=None)])
df.filter(df.height.isNull()).collect()
# [Row(name='Alice', height=None)]