Diagnose Bad Joins
Validating keys and the indicator flag.
Joins Fail Quietly
A broken join rarely throws an error. It just returns the wrong rows, so always check the result yourself.
Check the Row Count First
The fastest smoke test is shape. Compare row counts before and after the join to catch surprises early.
print(orders.shape, merged.shape)