I\'m trying to find last business day of of the month. I wrote the code below for that and it works fine but I was wondering if there is a cleaner way of doing it?
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')