title: Condition in pandas dataframe
body: <p>I have a dataframe called <code>Mix</code>:</p>
  
  <pre><code>     Name  Surname   Date   Status
  0      A     A8       1902    aab
  1      B     B9       1976    ab
  2      C     C8       1901    aab
  3      D     D4       1986    abc
  4      E     E7       1986    abb
  5      F     F1       1986    ab
  6      G     G5       1987    abc
  7      H     H2       1998    acc
  </code></pre>
  
  <p>I need to create a new dataframe according to several conditions:
  1) Take all the dublicates from column <code>Status</code> and get this:</p>
  
  <pre><code>          Name  Surname   Date   Status
      0      A     A8       1902    aab
      1      B     B9       1976    ab
      2      C     C8       1901    aab
      3      D     D4       1986    abc
      5      F     F1       1986    ab
      6      G     G5       1987    abc
  </code></pre>
  
  <p>2) Take only those rows of same Status, whose Date differs from each other more or less than 1 and get this:</p>
  
  <pre><code>          Name  Surname   Date   Status
      0      A     A8       1902    aab
      2      C     C8       1901    aab
      3      D     D4       1986    abc
      6      G     G5       1987    abc
  </code></pre>
  
  <p>can anybody help? </p>