Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pandas.tseries.offsets import CustomBusinessDay
- holidays = ['2012-05-01']
- next_business_day = CustomBusinessDay(holidays=holidays)
- def F(datetime):
- first_day_of_month = datetime.date().replace(day=1, hour=0)
- first_business_day_of_month = first_day_of_month + next_business_day
- return first_business_day_of_month
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement