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()Discussion 0
Join free to post in the discussion.
Related questions
- Filtering with = NULLData Engineer
- Adding a number to NULLData Engineer
- When Spark actually runsData Engineer
- What a Spark partition isData Engineer
- What the Spark driver doesData Engineer
- Calling collect() on 500 GBData Engineer
- Why DataFrames beat RDDs of objectsData Engineer
- Entry point of a Spark 3+ appData Engineer