Answers for "concat and drop duplicates pandas"

1

concatenate dataframes pandas without duplicates

>>> df1
   A  B
0  1  2
1  3  1
>>> df2
   A  B
0  5  6
1  3  1
>>> pandas.concat([df1,df2]).drop_duplicates().reset_index(drop=True)
   A  B
0  1  2
1  3  1
2  5  6
Posted by: Guest on November-29-2020
0

pandas merge two dataframes remove duplicates

concat = pd.merge(data_1, data_2, how='inner')
Posted by: Guest on October-27-2021

Code answers related to "concat and drop duplicates pandas"

Python Answers by Framework

Browse Popular Code Answers by Language