title: Python-Compare two string columns in same dataframe, return matching result
body: <p>I have a single dataframe that has two string state columns: State and STATE_ALPHA, that I want to only return if the two columns match. Both columns are two-character strings (AK, CA, FL) and I know what the expected result should be. Thanks for your help. </p>
  
  <p>I have tried these below:</p>
  
  <pre><code> df10=df9['State']==['STATE_ALPHA']
  </code></pre>
  
  <p>error I receive: Arrays were different lengths: 706 vs 1</p>
  
  <pre><code> df10=df9['State']=['STATE_ALPHA']
  </code></pre>
  
  <p>error I receive:Length of values does not match length of index</p>