I have a pandas dataframe (fb) with the date column orig_date. I want to add the number of months in the count_to_add column to the orig_date column, but the MonthEnd function isn't vectorized.
Here's what I tried:
fb["orig_date"] = fb["orig_date"] +
pd.tseries.offsets.MonthEnd(fb["count_to_add"])
Since the series count_to_add isn't an integer, the MonthEnd function errors out.