title: Compare if two python tables are tibble equivalent
body: <p>I want to write a function to compare if 2 tables are tibble equivalent(identical variables and observations) For example, the 2 tables below are equivalent.  For the third one isn't. </p>
  
  <pre><code>a   b   c
  x   1   hat
  y   2   cat
  z   3   bat
  w   4   rat
  
  b   c   a
  2   cat y
  3   bat z
  1   hat x
  4   rat w
  
  a   b   c
  2   y   cat
  3   z   bat
  1   x   hat
  4   w   rat
  </code></pre>
  
  <p>I decided to solve this by comparing the max values. How do I properly call out first, second, etc column and compare the max values for each one?</p>
  
  <pre><code>def equal(A, B):
      A_names = sorted(A.columns)
      X = A[var_names].copy()
      B_names=sorted(B.columns)
      Y=B[var_names].copy()
  
      if A[0].max()==B[0].max() and A[1].max()==B[1].max():
          return True
      else:
          return False
  </code></pre>
  
  <p>This has a Error KeyError: 0</p>