title: Print Specific Rows and Columns in Pandas
body: <p>I am having trouble printing certain values within my CSV.</p>
  
  <p>I have a file that has 9 columns</p>
  
  <pre><code>Record_id   Month   Day   Year  Location_id   Animal_id  Sex   Length   Weight
  </code></pre>
  
  <p>and over 1000 rows.</p>
  
  <p>I want to print Month , Day , and Year columns when the year is equivalent to 2002.</p>
  
  <p>Because I have a lot of data I decided to only work with the first 5 rows where year is equal to 2002.</p>
  
  <p>This is my code:</p>
  
  <pre><code>data.df.iloc[0:5, 1:4]
  </code></pre>
  
  <p>With this I can print the first 5 rows and the 3 columns I desire. However I can't figure out how to filter the year to be 2002</p>