title: Create new binary column conditioned on matching text
body: <p>I have data frame <code>dftxt_house</code> with one column <code>url_text</code> and 388 rows. I want to make a new column <code>blocked</code> conditional on the text in <code>url_text</code>. Rows in the new column <code>blocked</code> should take value <code>1</code> if the corresponding text in <code>url_text</code> contain either <code>blocked you</code> or <code>You're blocked</code> and if not value <code>0</code>. The code below works for either <code>blocked you</code> or <code>You're blocked</code> but when adding both to the code using the  <code>or</code> statement it results in value <code>1</code> on all rows in the column <code>blocked</code>.</p>
  <p>Am I misunderstanding the <code>or</code> statement?</p>
  <p>A look at data frame <code>dftxt_house</code></p>
  <pre><code>dftxt_house.head()
                                                                                                                                                                                                    url_text
  0  Text SIGN LIKUOL to 50409 to send this to your officials\nen)\n1 signer. Let's get to 10!\n\nAN OPEN LETTER to THE U.S. CONGRESS STARTED by JOANNE\n\nMail in Ballot being blocked by Trump\n\nHello...
  1           \n\nf;\n\nMark DeSaulnier @\n\n@RepDeSaulnier\n\n@RepDeSaulnier blocked\nyou\nb ColUir- |= 0) (eel, ¢-10 macelaamiell(e\uiiate|\n\n@RepDeSaulnier and viewing\n@RepDeSaulnier’s Tweets.\n\n \n
  2  JACKIE SPEIER COMMITTEE OW ARMED SERVICES\ntate Distarcr, CAuiroania SUBCOMMITTEES\n\n2465 Ravaurn House Orrice BuLOmG CHAIRWOMAN, MILiTafy PEAS INHEL\n\nWasumiaton, DC 20515-0514 , StRateaic Fonc...
  3  PANGRESSMAN ERIC SWALWELL\n\nPRC &lt;€—  VING CALIFORNIA'S 15TH CONGRESSIONAL DISTRICT\n\n \n\nFollow\n\nRep. Eric Swalwell |\n@RepSwalwell\n\n@RepSwalwell\nblocked you\nYou are blocked from followin...                
  </code></pre>
  <p>Code that should create new binray column</p>
  <pre><code># match all rows with the string &quot;blocked you&quot; or &quot;You're blocked&quot;. 
  # a user who have been blocked by another user i.e. a politician. Create new column with 0 = no block and 1 = block
  dftxt_house['blocked'] = dftxt_house.apply(
      lambda row: 1 if 'blocked you' or &quot;You're blocked&quot; in row['url_text'] else 0,
      axis=1
  )
  </code></pre>
  <p>Current &quot;wrong&quot; result</p>
  <pre><code>dftxt_house['blocked'].value_counts()
  1    388
  </code></pre>