Python Comparing Two Dataframes Vs Arrays In Matlab