Skip to content
RED SAG Skills
medium10 pts · first answer countssparknull-handling

Rows missing after a != filter

A table has 1,000 rows: 300 with status "CANCELLED", 600 with other values, and 100 with null status. How many rows does this return?

df.filter(F.col("status") != "CANCELLED").count()
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions