Module 6 Assessment: Summary and Reshape Check
Assessment ID: DAV-M06-QA01 Estimated active time: 30-40 minutes
Part A: Short answers
- What does grain mean?
- What are the three parts of split-apply-combine?
- When is a pivot table useful?
- Why is long-form data often useful for plotting?
- What is the difference between
aggandtransform?
Part B: Code check
Write pandas code to:
- Group by
course_name. - Count unique learners.
- Sum
minutes_spent. - Calculate average
minutes_spent. - Build a pivot table with
course_nameas rows andweek_numberas columns. - Melt a wide weekly table into long form.
Rubric
| Level | Evidence |
|---|---|
| Pass | Summary tables are correct, named clearly, and include grain explanations. |
| Revise | Code produces output but row meaning or column names are unclear. |
| Not yet | Code creates summaries without explaining what one result row represents. |
