Loading...
Batch Partitioner
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
A partitioning step routes records to different downstream workers based on a partition key field. Return a dict mapping each distinct value of the key field to the list of records that share it.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.