title: how to compare two values in series, not the series objects? Python 3.x
body: <p>I am getting an error saying "ValueError: Can only compare identically-labeled Series objects". I got as far as knowing that I am comparing two series objects and not the values inside them. However, I thought <code>series[column]</code> gave you the value inside. Can someone elaborate more on this? I am truly stuck on where i could find this information and would gradly love to be pointed toward the right direction. <code>all_ages</code> and <code>recent_grads</code> are dataframes. </p>
  
  <pre><code>import pandas as pd
  
  majors = recent_grads['Major'].unique()
  rg_lower_count = 0
  
  for x in majors:
      aa_major = all_ages[all_ages['Major'] == x]
      rg_major = recent_grads[recent_grads["Major"] == x]
  
  
      if rg_major["Unemployment_rate"] &lt; aa_major["Unemployment_rate"]:
          rg_lower_count += 1
  
  print(rg_lower_count)
  </code></pre>