title: Create a Boolean column based on a condition
body: <p>I have a dataframe of 11 columns and I want to create a new 0,1 column based on values in two of those columns.</p>
  
  <p>I have already tried using np.where to create other columns but it doesnt work for this one.</p>
  
  <pre><code>train["location"] = np.where(3750901.5068 &lt;= train["x"] &lt;= 3770901.5068 
  and -19268905.6133 &lt;= train['y'] &lt;= -19208905.6133, 1, 0)
  </code></pre>
  
  <p>I get this error: ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().</p>