Solution from these threads
Comparing two pandas dataframes for differencesComparing two pandas dataframes for differences
Pandas DataFrames with NaNs equality comparisonPandas DataFrames with NaNs equality comparison
def df_equal(self): try: assert_frame_equal(csvdata, csvdata_old) return True except: return False For a dictionary of dataframes:
def df_equal(df1, df2): try: assert_frame_equal(df1, df2) return True except: return False def __eq__(self, other): if self.df.keys() != other.keys(): return False for k in self.df.keys(): if not df_equal(self.df[k], other[k]): return False return True