Week 3 • Thursday

Block 28: Merge, Join & Concat

Combine multiple DataFrames together.

Concepts

Code Examples

See exercise below.

Exercise

Create two small DataFrames (students and their scores) and merge them on 'student_id'. Stack three DataFrames of monthly sales data using pd.concat.

Homework

Describe the difference between inner and left join with a 5-row example. Friday