From what I understand about a left outer join, the resulting table should never have more rows than the left table...Please let me know if this is wrong...
My left table is 192572 rows and 8 columns.
My right table is 42160 rows and 5 columns.
My Left table has a field called 'id' which matches with a column in my right table called 'key'.
Therefore I merge them as such:
combined = pd.merge(a,b,how='left',left_on='id',right_on='key')
But then the combined shape is 236569.
What am I misunderstanding?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…