I want to filter a data frame using a date column. The code yould return only the rows with a date less than today's date + time until the year's end.
I tried the following:
df2=df[df['date'] < dt.datetime.today().strftime('%Y-%m-%d')+pd.tseries.offsets.YearEnd]