Another Pandas question!
I am writing some unit tests that test two data frames for equality, however, the test does not appear to look at the values of the data frame, only the structure:
dates = pd.date_range('20130101', periods=6)
df1 = pd.DataFrame(np.random.randn(6, 4), index=dates, columns=list('ABCD'))
df2 = pd.DataFrame(np.random.randn(6, 4), index=dates, columns=list('ABCD'))
print df1
print df2
self.assertItemsEqual(df1, df2)
-->True
Do I need to convert the data frames to another data structure before asserting equality?