A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L4
Problem
Given old_schema and new_schema (each a list of {'name', 'type'} dicts), return a dict with: 'added' (list of column names in new only), 'removed' (list of column names in old only), 'type_changed' (list of {'name', 'old_type', 'new_type'} dicts where the same column name has different types). Sort each list by name ascending.
Summary
Schema from yesterday vs today. Something changed.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.