Learn by fixing tests
© 2025-2026 Alex Cole. All Rights Reserved.
Spark Koans is an independent community tool.
Cast columns to different data types. Replace ___ with the correct code.
___
data = [("Alice", "34"), ("Bob", "45")] df = spark.createDataFrame(data, ["name", "age_str"])
Output will appear here...