title: Is there a way to pass a list of values to df.loc method of pandas dataframe?
body: <p>I am trying to filter a data frame using values I receive from a user. The problem I'm facing is I could not find a way to use the loc method if there is more than one value for the input. Say loan amounts are 300, 400 and 600. Ideally, I'd like to pass a list of values. How can I accomplish this? See the code below to understand the filtering</p>
  <pre><code>mortgage_df = df.loc[(df['loan_purpose'] == loan_purpose) &amp; (df['loan_amount'] == loan_amount)]
  </code></pre>