Topics / 🔀 Pipelines & Data Engineering Patterns / 🏭 Level 33: Data Engineering Patterns

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.

Layers: 🥇 Gold (totals per player: Kai 200, Mia 340); 🥈 Silver (clean, typed rows (bad ones dropped)); 🥉 Bronze (raw rows, exactly as received). data flows up from bronze; replay from bronze if anything breaks🥇 Goldtotals per player: Kai 200, Mia 340🥈 Silverclean, typed rows (bad ones dropped)🥉 Bronzeraw rows, exactly as receiveddata flows up from bronze; replay from bronze if anything breaks
🌍 Real-life storyReal-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

Try it in your browser → Free. Sign in with Google to run it. Your code runs on your device.

In this level you'll learn:
More in Level 33: Data Engineering Patterns

Share on LinkedIn