title: Confirming equality of two pandas dataframes?
body: <p>How to assert that the following two dataframes <code>df1</code> and <code>df2</code> are equal?</p>
  
  <pre><code>import pandas as pd
  df1 = pd.DataFrame([1, 2, 3])
  df2 = pd.DataFrame([1.0, 2, 3])
  </code></pre>
  
  <p>The output of <code>df1.equals(df2)</code> is <code>False</code>.
  As of now, I know two ways:</p>
  
  <pre><code>print (df1 == df2).all()[0]
  </code></pre>
  
  <p>or</p>
  
  <pre><code>df1 = df1.astype(float)
  print df1.equals(df2)
  </code></pre>
  
  <p>It seems a little bit messy. Is there a better way to do this comparison?</p>