title: Filter by a week yesterday
body: <pre><code>df
  0   2021-08-01    20
  1   2021-09-01    10
  ...
  20  2021-17-01    18
  </code></pre>
  <p>How can I keep only dates between yesterday (16th Jan) to a week before yesterday (10th Jan) in general code? I tried:</p>
  <pre><code>df[df.date &gt;((datetime.datetime.now() - timedelta (1)) - pd.timedelta(&quot;7day&quot;)]
  </code></pre>