7

The DateOffset seems to be the way to go, but I'm confused with the documentation. How can I offset by business days?

Thanks.

jf328
  • 6,841
  • 10
  • 58
  • 82
  • 1
    See related: http://stackoverflow.com/questions/13019719/get-business-days-between-start-and-end-date-using-pandas – EdChum Mar 17 '15 at 12:07

1 Answers1

7
import datetime as dt
from pandas.datetools import BDay

ts = pd.Timestamp(dt.datetime.now())
>>> ts + BDay(5)

Out[42]: Timestamp('2015-03-24 06:48:50.133321')
Alexander
  • 105,104
  • 32
  • 201
  • 196
  • 12
    I cannot make the import above, but this works now: `from pandas.tseries.offsets import BDay` – Mahdi Sep 30 '16 at 15:58