title: df.loc with more than one condition
body: <p>I am trying to produce a variable in my dataframe that states if the specfied time is in rush hour using two other variables 'hour' and 'weekday?'.When I run the code it only states 'NaN', can someone guide me on what is wrong with my code? The code that i am using can be seen below:</p>
  
  <pre><code>df.loc[(df['hour'] &lt;7) &amp; (df['hour']&gt;10) &amp; (df['hour'] &lt;3) &amp; (df['hour']&gt;6) , 'Rush_hour?'] = 'No' 
  df.loc[(df['hour'] &gt;=3) &amp; (df['hour']&lt;=6) &amp; (df['weekday?'] == 'yes'), 'Rush_hour?'] = ' Yes-pm'  ```
  
  
  </code></pre>