title: AttributeError: module 'pandas.tseries.offsets' has no attribute 'timedelta'
body: <p>my version of pandas is 1.1.3, and I'm trying to run code obtained from the accepted answer to <a href="https://stackoverflow.com/questions/34597926/converting-daily-stock-data-to-weekly-based-via-pandas-in-python">this question</a> but</p>
  <pre><code>offset = pd.offsets.timedelta(days=-6)
  </code></pre>
  <p>gives the error mentioned in my title, timedelta has been imported but no luck. How can I get this to run properly?</p>