Comparing Two Dataframe Python Local Vs Global Variables