Coding challenges
Python coding questions for data engineers
Data engineering screens often include a short Python task about handling records: removing duplicates, merging, parsing or batching. Each question here asks for one function. It runs in Python in your browser, and hidden tests try the edge cases a real pipeline meets.
Your code runs in Python on your own device. Nothing is sent to us.
A new one every day
Today’s challenge
The Python
Data engineer interviews use Python to see how you handle real records: data that arrives twice, late or malformed. They care less about clever tricks than about correct, readable code that copes with empty input, repeats and large volumes, and about you explaining why it works.
Still working out the route in? Read how to become a data engineer in the UK on Deeplink Coaching.
- Batch records by count and size Batching, Lists · data engineer
- Merge rail closures Intervals, Sorting, Dictionaries · data analyst and data engineer
- Merge sorted feeds into one Sorting, Lists · data engineer
- Most common words in feedback Dictionaries, Sorting, Parsing · data analyst and data engineer
- Quoted fields in a claims CSV Parsing, Dictionaries, Data quality · data engineer
- Remove duplicate events Sets, Lists, Data quality · data engineer
- Calls per 15 minutes Dates, Dictionaries, Sorting · data analyst and data engineer
- Check records against a schema Validation, Dictionaries, Data quality · data engineer
- Clean a meter readings file Parsing, Validation, Dictionaries, Data quality · data engineer
- Fetch every page from an API Deduplication, Dictionaries, Sets · data engineer
- Flatten nested JSON records Parsing, Dictionaries · data engineer
- Sessions from app events Sessions, Sorting, Dictionaries, Sets · data analyst and data engineer
- Sliding window rate limit Rolling windows, Dictionaries, Lists · data engineer
- Task runs from a scheduler log Parsing, Dictionaries, Data quality · data engineer
- Compare two account snapshots Dictionaries, Sets, Data quality · data engineer
- Idempotent upserts and deletes Dictionaries, Deduplication, Data quality · data engineer
- Run order for pipeline tasks Sorting, Dictionaries, Sets · data engineer
Want a day-by-day route through them? Follow the two-week Python and pandas plan
Interview guides
Read
Explaining your code out loud is half of a technical interview. These guides show how.
Getting ready for a data role? Deeplink Coaching offers data career coaching for graduates applying for data analyst and data engineer jobs.