title: How to filter rows of a pandas df using the columns value as the key to a dictionary based on its returned value
body: <p>I have a dataframe which I need to filter rows out when the value returned by a dictionary using the value of the specific column is used as a dictionary key to return the keys value.</p>
  
  <p>I have been able to filter the rows based on the columns value but when i try to use the columns value in a dictionary in a similar fashion iit returns an error.</p>
  
  <pre class="lang-sh prettyprint-override"><code>TypeError: 'Series' objects are mutable, thus they cannot be hashed
  </code></pre>
  
  <pre class="lang-py prettyprint-override"><code>indexNames = df[ accounting_type_dict[df['fund_id']] == 'ETFs' ].index
  df.drop(indexNames , inplace=True)
  </code></pre>