I'm trying to subset a DataFrame on the condition that is the last of the month. I used:
df['Month_End'] = df.index.is_month_end
sample = df[df['Month_End'] == 1]
This works, but I'm working with stock market data, so I'm missing all the instances where the actual end of the month is during the weekend, I need a way to select the "last business day of the month".