Answers for "compare 2 dataframes in python without index"

2

python pandas difference between two data frames

diff_df = pd.merge(df1, df2, how='outer', indicator='Exist')

diff_df = diff_df.loc[diff_df['Exist'] != 'both']
Posted by: Guest on April-28-2020

Code answers related to "compare 2 dataframes in python without index"

Python Answers by Framework

Browse Popular Code Answers by Language