title: Applying a condition in Pandas
body: <p>I have a dataset with over 20000 rows, that goes pretty much like this :</p>
  <pre><code>dataset.head()
  </code></pre>
  <p><img src="https://i.stack.imgur.com/p2W3F.png" alt="" /></p>
  <p>So, what I want is only to keep the Ids that have as a date : 2018, 2017 and 2016 combined (Not just one of them). For example:  I won't have Id 1, but will have Id 3.
  How can I do that in Pandas?</p>
  <p>I'm sorry if the question sounds silly for you, I'm just a beguinner.. Thanks!</p>