title: Pandas conditional subset for dataframe with bool values and ints
body: <p>I have a dataframe with three series. Column A contains a group_id. Column B contains True or False. Column C contains a 1-n ranking (where n is the number of rows per group_id). </p>
  
  <p>I'd like to store a subset of this dataframe for each row that:</p>
  
  <pre><code>1) Column C == 1
  OR
  2) Column B == True
  </code></pre>
  
  <p>The following logic copies my old dataframe row for row into the new dataframe:</p>
  
  <pre><code>new_df = df[df.column_b | df.column_c == 1]
  </code></pre>