title: How do you use loc in pandas with more than one condition?
body: <p>I'm looking at <a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.loc.html" rel="nofollow noreferrer">this example</a> from the documentation:</p>
  <pre><code>df.loc[lambda df: df['shield']==8]
  </code></pre>
  <p>How do I extend this with an <strong>OR</strong> condition? I'm trying to do this but it doesn't work:</p>
  <pre><code>df.loc[lambda df: df['shield']==8 or df['max_speed'] ==1]
  </code></pre>
  <p>Also, as a side note, what is the point of the lambda function in this case since:</p>
  <pre><code> df.loc[df['shield']==8]
  </code></pre>
  <p>works just fine.</p>