Filter Pyspark dataframe column with None value

前端 未结 10 1717
小鲜肉
小鲜肉 2020-11-29 18:10

I\'m trying to filter a PySpark dataframe that has None as a row value:

df.select(\'dt_mvmt\').distinct().collect()

[Row(dt_mvmt=u\'2016-03-27\         


        
10条回答
  •  萌比男神i
    2020-11-29 18:15

    If you want to keep with the Pandas syntex this worked for me.

    df = df[df.dt_mvmt.isNotNull()]
    

提交回复
热议问题