finding last business day of a month in python
Let's say you want to get the last business days of the month up-to the end of the next two years, the following will work.
import pandas as pd import datetime start = datetime.date.today() end = datetime.date(start.year+2, 12, 31) bussiness_days_rng =pd.date_range(start, end, freq='BM')