title: Python pandas: Calculating distance ran between two lists?
body: <p>I have two lists of rankings A and B like this:</p>
  
  <p>A:</p>
  
  <pre><code>rank  asn
  1     345
  2     34567
  3     123
  </code></pre>
  
  <p>B:</p>
  
  <pre><code>rank  asn
  1     123
  2     34567
  3     345
  </code></pre>
  
  <p>I would like to compare the two lists using a correlation method to see how different the lists are from each other. Currently I am using "Spearman" correlation method but the problem is that every time I run it I get different result. 
  Here is my code:</p>
  
  <h1>calculating correlation rank</h1>
  
  <pre><code>a['asn'].corr(b['asn'], method='spearman')
  </code></pre>
  
  <p>Can anybody help with a way to compare the two lists?</p>