Data Project: Prepare a Fictional Activity Log
Unit ID: M09-U10 Estimated active time: 65-90 minutes
Use the supplied activity_log.csv and module_lookup.csv. Preserve both source files.
Required work
- Load raw fields as text and inspect shape, columns, blanks, and duplicate learner-module keys.
- Clean IDs, status, minutes, score, and region with explicit rules.
- Reject invalid IDs, status, minutes, non-empty invalid score text, and later duplicate keys.
- Allow a blank score and preserve it as missing.
- Create hours, passed-score, and completed-and-passed fields.
- Left-join module names with relationship validation and report unmatched module IDs.
- Produce a grouped module summary and labelled bar chart with text equivalent.
- Export clean, rejected, summary, and transformation-log files separately.
- Restart and run all from clean state.
Expected: six clean rows, two rejected rows, one unmatched module ID (M03), and MODULE 9 PROJECT: PASS.
