Learn by fixing tests
© 2025-2026 Alex Cole. All Rights Reserved.
Spark Koans is an independent community tool.
Delete rows from a Delta table based on a condition. Replace ___ with the correct code.
___
_reset_delta_tables() data = [("Alice", 100, True), ("Bob", 200, False), ("Charlie", 150, True)] df = spark.createDataFrame(data, ["name", "balance", "is_active"]) df.write.format("delta").save("/data/accounts")
Output will appear here...