I have two dataframes and I have created a "Check" column in second dataframe to check if values in the Total Claims columns are equal. Here are my two dataframes:
Dataframe 1
Dataframe 2
The code that I used to create the "Check" column comparing Total Claims between the two dataframes was:
reported_claims['Check'] = np.where(reported_claims['Total Claims'].reset_index(drop=True) == df['Total Claims'].reset_index(drop=True) , 'TRUE', 'FALSE')
I noticed that the 7th values in two dataframes are both 31.32 but the check columns says False. I was just wondering why is it saying False and how would I fix this problem? Thank you so much for your time!