title: What is the best code for checking if the names under columns with the same names, but in two different dataframes match? In python, using pandas?
body: <p>I have two dataframes life_exp_mean_top_10 and health_exp_mean_top_10, both have the column 'country'. </p>
  
  <p>I want to see if the names of the countries with the top 10 life expectancy(life_exp_mean_top_10) equals the names of the top 10 government health spending ( health_exp_mean_top_10) countries.</p>
  
  <p>I'm using jupyter notebook with python 3 and pandas. 
  DF1</p>
  
  <pre><code>life_exp_mean_top_10
  
  country
  
  Andorra        79.770833
  
  Japan          79.596078
  
  Switzerland    78.956863
  
  Iceland        78.821569
  
  Sweden         78.578431
  
  Greece         78.066667
  
  Spain          77.962745
  
  Norway         77.898039
  
  Canada         77.870588
  </code></pre>
  
  <p>DF2</p>
  
  <pre><code>health_exp_mean_top_10
  
  country
  
  Luxembourg       4353.125
  
  Norway           4166.250
  
  Monaco           3573.125
  
  Denmark          3420.000
  
  Iceland          3071.875
  
  Switzerland      2915.625
  
  Sweden           2686.875
  
  Germany          2649.375
  
  United States    2646.250
  
  Austria          2635.000
  
  Italy          77.827451
  </code></pre>