title: Selecting rows of a dataframe based on two conditions in Pandas python
body: <p>I have a df, and I want to run something like: </p>
  
  <pre><code>subsetdf= df.loc[(df['Item_Desc'].str.contains('X')==True) or \
                   (df['Item_Desc'].str.contains('Y')==True ),:]
  </code></pre>
  
  <p>that selects all rows that have the Item Desc column a substring of "X" or "Y".</p>
  
  <pre><code>The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). 
  </code></pre>
  
  <p>I get the error when I run that.  Any help?</p>