📜  pyspark 过滤器 isNotNull - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:33.098000             🧑  作者: Mango

代码示例1
>>> from pyspark.sql import Row
>>> df = spark.createDataFrame([Row(name='Tom', height=80), Row(name='Alice', height=None)])
>>> df.filter(df.height.isNotNull()).collect()
[Row(name='Tom', height=80)]