Pandas Cooperative — Data Engineering

Build Mas Ragil's coconut sugar co-op pipeline: pandas, DuckDB, Parquet, a scheduler like Airflow. 14 levels, right in the browser.

What the levels ask

  1. Wednesday 1 July. The spreadsheet on Mrs. Lastri's phone is set to Indonesian: columns split by semicolons, weights with a decimal comma (3,5), rupiah with a thousands dot (64.750). Choose how pandas reads the numbers so the morning board says 20 kg and Rp370.000, as her book does.
  2. Tuesday 7 July. The first week's deliveries come as one file. Dates are written day first (03/07/2026), and member numbers start with the group's code: 03 Pesisir, 07 Tegal, 12 Bukit. Choose how the dates and numbers are read so all three groups count in full on July's board.
  3. Wednesday 8 July. Two Bukit tappers' sugar burnt: they still came, but Mrs. Tini left their weight cells empty. The cooperative's rule: the average is over every tapper who came, and failed sugar counts as 0 kg. Choose the calculation so the board shows Bukit with 6 people and an average of 2 kg.
  4. Thursday and Friday, 9 and 10 July. The sales slips are joined with Mr. Bayu's daily price list. Grade C sugar has no price yet and still shows, without rupiah. On Friday grade A's price was typed twice. Choose how and validate so Thursday's board is right, and Friday evening stops with an error before a wrong board goes up.
  5. Saturday 11 July. The Tegal group's scale weighs the basket too: every Tegal row is 0.2 kg over. Choose the correcting line so only Tegal's weights go down, and the board shows Tegal at 17 kg with no warning from pandas.
  6. Monday 13 July. Slips now come one by one; a slip written wrongly is sent again with the same number, and a tapper can deliver twice a day with two slips. Choose the ROW_NUMBER window so what is left is the newest version of every slip.
  7. Tuesday 14 July. Each group gives a sack of fertiliser to the two tappers with the most kilos last week. On a tie, everyone tied gets one, and the places after them shift down. Choose the ranking function and its partition so the list on the board follows that rule.
  8. Friday 17 July. The exporter raised grade A's price from 15 July. dim_harga records every price with the date it took effect. Choose the join so every delivery is paid at the price in force on its day, and the payouts for the first half of July do not change.
  9. Saturday 18 July. July's deliveries move into a data lake, Parquet files under danau/setoran. Mr. Ragil's rule: one folder per day, so a day can be rewritten on its own, and the board for 6 to 12 July may open only 7 files (DuckDB counts them itself). Choose the partition key and the filter.
  10. Monday 20 July. From tonight orkestra, a small scheduler on the Apache Airflow model, runs the evening's work: one DAG of tasks joined with >>. Mrs. Tini's file needs cleaning first by the bersihkan_bukit task. Choose the links so the board goes up after all three groups are ready.
  11. Tuesday 21 July. The muat task writes today's deliveries into the lake, then texts the committee through the gateway on the hill. Tonight the signal drops once. Choose how the partition is written and how many tries the task gets, so July's board still goes up with every day recorded exactly once.
  12. Saturday 25 July. A storm cut the power for three nights, 22 to 24 July, but files kept arriving in masuk/ each night. Tonight the laptop is back on. Choose catchup and the file muat reads, so all four nights run and each day loads its own file.

And more, 14 levels in all.