Comparing Two Dataframe Python Definition Function