title: How do I compare two Python Pandas Series of different lengths?
body: <p>I have two Series of different lengths, and I want to get the indices for which <strong>both the indices <em>and</em> the amount</strong> are the same in both series.</p>
  
  <p>Here are the Series:</p>
  
  <pre><code>ipdb&gt; s1
  s1
  000007720          2000.00
  group1            -3732.05
  group t3           2432.12
  group2           -38147.87
  FSHLAJ           -36711.09
  EWkayuwo             -3.22
  Name: amount, dtype: float64
  ipdb&gt; s2
  s2
  000007720                 2000.00
  group1                   -3732.05
  group z                  12390.00
  group y                  68633.43
  group x                     25.00
  group w                   3913.00
  group v                 -12750.50
  group u                    -53.49
  group t                  -7500.00
  group s                  -1575.82
  group r                    -10.00
  group q                   1800.00
  group p                  -4510.34
  EWFhjkaQU                  455.96
  group2                  -38147.87
  FSHLAJ                  -36711.09
  GEKWJ                        5.54
  Name: amount, dtype: float64
  </code></pre>
  
  <p>When I try to compare them, I get:</p>
  
  <pre><code>ipdb&gt;s1 == s2
  *** ValueError: Series lengths must match to compare
  </code></pre>
  
  <p>How can I achieve my objective?</p>