Mismatched dataframe rows in python I’m trying to convert sql code to python, where inner join is being used.