Names on Every Visit

Data with PythonMedium+20 XP+20

Names on Every Visit

A gym records each class visit by member number. Member details live in a second table, exported from an old system.

visits:

member_idclass
101spin
104yoga
101yoga
107spin
104pilates
102spin
104yoga

members:

member_idnameplan
101Ashamonthly
102Bilalannual
104Chenmonthly
104Chenannual
105Danamonthly

To put a name on every visit, the manager runs:

Remember exactly how merge lines rows up: it takes each row of the left table and pairs it with every row of the right table that has the same key, writing one combined row for each pair. how="left" also keeps any left row that has no match at all, with NaN in the right table's columns.

How many rows does joined have? Enter a whole number.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.