title: Selecting data based on number of occurences using Python / Pandas
body: <p>My dataset is based on the results of Food Inspections in the City of Chicago.</p>
  
  <pre><code>import pandas as pd
  df = pd.read_csv("C:/~/Food_Inspections.csv")
  
  df.head()
  Out[1]: 
     Inspection ID                        DBA Name  \
  0         1609238  JR'SJAMAICAN TROPICAL CAFE,INC   
  1         1609245                     BURGER KING   
  2         1609237   DUNKIN DONUTS / BASKIN ROBINS   
  3         1609258          CHIPOTLE MEXICAN GRILL   
  4         1609244      ATARDECER ACAPULQUENO INC.   
  
                          AKA Name  License # Facility Type             Risk  \
  0                            NaN  2442496.0    Restaurant    Risk 1 (High)   
  1                    BURGER KING  2411124.0    Restaurant  Risk 2 (Medium)   
  2  DUNKIN DONUTS / BASKIN ROBINS  1717126.0    Restaurant  Risk 2 (Medium)   
  3         CHIPOTLE MEXICAN GRILL  1335044.0    Restaurant    Risk 1 (High)   
  4     ATARDECER ACAPULQUENO INC.  1910118.0    Restaurant    Risk 1 (High)   
  </code></pre>
  
  <p>Here is how often each of the facilities appear in the dataset:</p>
  
  <pre><code>df['Facility Type'].value_counts()
  Out[3]: 
  Restaurant                          14304
  Grocery Store                        2647
  School                               1155
  Daycare (2 - 6 Years)                 367
  Bakery                                316
  Children's Services Facility          262
  Daycare Above and Under 2 Years       248
  Long Term Care                        169
  Daycare Combo 1586                    142
  Catering                              123
  Liquor                                 78
  Hospital                               68
  Mobile Food Preparer                   67
  Golden Diner                           65
  Mobile Food Dispenser                  51
  Special Event                          25
  Shared Kitchen User (Long Term)        22
  Daycare (Under 2 Years)                18
  </code></pre>
  
  <p>I am trying to create a new set of data containing those rows where its Facility Type has over 50 occurrences in the dataset. How would I approach this?</p>
  
  <p>Please note the list of facility counts is MUCH LARGER as I have cut out most of the information as it did not contribute to the question at hand (so simply removing occurrences of "Special Event", " Shared Kitchen User", and "Daycare" is not what I'm looking for).</p>