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