When I merge two data frame based on 'Name' column in both daraframe, I get duplicated rows, and I want to keep the first one. How can I deal with it?
df1
Name Address
0 Amy Nan
1 Breen Nan
2 Carly Nan
df2
ID Name Address
0 1102 Amy 899 South
1 1105 Amy 700 Tower
2 1342 Breen 930 Tower
3 4674 Breen 555 Hall
4 5644 Breen 345 Young
5 2340 Carly 8988 House
after merging:
df1
Name Address
0 Amy 899 South
1 Amy 700 Tower
2 Breen 930 Tower
3 Breen 555 Hall
4 Breen 345 Young
5 Carly 8988 House
I want to make like this:
df1
Name Address
0 Amy 899 South
1 Breen 930 Tower
2 Carly 8988 House