title: Get subset of most frequent dummy variables in pandas
body: <p>I am trying to perform some linear regression analysis, I have some categorical features that i convert to dummy variables using the super awesome get_dummies.</p>
  
  <p>The issue I face is, the dataframe gets too big when I add all the elements of the categories.</p>
  
  <p>Is there a way (using get_dummies or a more elaborate method) to just create dummy variables of the most frequent terms instead of all of them?</p>