title: Pandas - filter users with minimum artists listened to
body: <p>I want to filter my dataset to users who have listened to a minimum number of unique artists. My aim is to focus on users with relatively higher listenership as a function of artist selection. </p>
  
  <p>Below is a data example and my initial code approach: </p>
  
  <pre><code>full_df.head()
  
     user artist              plays  gender  age    Country
  0   a   devendra banhart    456    m       28.0   United States
  1   b   boards of canada    407    m       28.0   United States
  2   a   cocorosie           386    m       28.0   United States
  3   c   aphex twin          213    m       28.0   United States
  4   d   animal collective   203    m       28.0   United States
  </code></pre>
  
  <p>Code: </p>
  
  <pre><code>eda_df = full_df.groupby('users')['artist'].filter(lambda x: len(x) &gt;= 20)
  </code></pre>
  
  <p>In this case, user a would display the highest artist count. </p>