Python exercise · about 5 minutes · free
Pattern: Bronze, Silver, Gold
Raw data is messy. Clean data is useful. Business-ready data is valuable. Keep all three layers.
Bronze: raw, untouched. Silver: validated, typed, deduplicated. Gold: aggregates for dashboards.
🌍 Real-life story
Real-life story: the medallion architecture (popular on Databricks and lakehouses) stores raw data as-is (bronze), cleaned data (silver) and aggregated, business-ready tables (gold). If a bug appears, you replay from bronze.Your quest: Write
to_silver(bronze) (drop rows with no player or a non-numeric score, cast score to int) and to_gold(silver) (total score per player).Starter code
def to_silver(bronze):
pass
def to_gold(silver):
pass