title: Finding top 10 in a dataframe in Pandas
body: <p>I have a dataframe (df) with approx 800 rows with data like this:</p>
  
  <p>Name:Jason<br>
  Age: 45
  Ticket:1   </p>
  
  <p>Name:Kim<br>
  Age: 30
  Ticket:0           </p>
  
  <p>1 = has a ticket
  0 = does not have a ticket</p>
  
  <p><strong><em>(sorry, that didn't format very well. It's basically 3 columns in the dataframe: Name, Age and Ticket)</em></strong></p>
  
  <p>Using Pandas, I am wondering what the syntax is for find the Top 10 oldest people who HAVE a ticket</p>
  
  <p>So far I have:</p>
  
  <pre><code>df.sort_values('Age',ascending=False,inplace=True)(data.Ticket==1)
  (data.head(10))
  </code></pre>
  
  <p>I know that's not correct but it shows what the parameters are that I am looking for.  Any ideas?  Thanks</p>