title: compare two dataframes to see if they are equal
body: <pre><code>db_data_df = data1['data']
  data_df = data2['data2']
  print(db_data_df.equals(data_df))
  </code></pre>
  <p><a href="https://i.stack.imgur.com/U4MPw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U4MPw.png" alt=".values" /></a>
  <a href="https://i.stack.imgur.com/EBBIj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EBBIj.png" alt="the two dataframes look like this" /></a></p>
  <p>I have two dataframes. I am checking if they are equal or not. They are. but instead of giving true, it is saying false. why?</p>
  <p>If I turn the values of both df into dict this is the result I get.</p>
  <p>{'data': {0: 0.88, 1: 0.976, 2: 1.072, 3: 1.195, 4: 1.295}}</p>
  <p>{0: 0.88, 1: 0.976, 2: 1.072, 3: 1.195, 4: 1.295}</p>