Learn by fixing tests
© 2025-2026 Alex Cole. All Rights Reserved.
Spark Koans is an independent community tool.
Remove columns from a DataFrame. Replace ___ with the correct code.
___
data = [("Alice", 34, "NYC", "F"), ("Bob", 45, "LA", "M")] df = spark.createDataFrame(data, ["name", "age", "city", "gender"])
Output will appear here...