How many rows with a left join?
Select the true statement about left joins.
Try running the following code statements:
left_table.merge(one_to_one, on='id', how='left').shape
left_table.merge(one_to_many, on='id', how='left').shape
Note that the left_table
starts out with 4 rows.
This exercise is part of the course
Joining Data with pandas
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
