Earlier, when we calculated the next business day from August 29, 2014, we were told by pandas that this date is September 1, 2014. This is actually not correct in the United States: September 1, 2014 is a US federal holiday and banks and exchanges are closed on this day. The reason for this is that pandas uses a specific default calendar when calculating the next business day, and this default pandas calendar does not include September 1, 2014 as a holiday.
The solution to this issue is to either create a custom calendar (which we will not get into the details of), or use the one custom calendar provided by pandas for just this situation, USFederalHolidayCalendar. This custom calendar can then be passed to a CustomBusinessDay object that will be used instead of a BusinessDay object. The calculation using this CustomBusinessDay object will then...