df.filter("state IS NULL AND gender IS NULL").show() df.filter(df.state.isNull() & df.gender.isNull()).show()