I want to perform the following operation:
df_final[quarter_dates]=df_final[quarter_dates].multiply(daily_cost_df, axis=0)
quarter dates was generated as follows:
quarter_dates = pd.date_range("2020-1-01", freq="Q", periods = 32).date
the error that I am receiving while attempting to run the first operation is as follows:
'<' not supported between instances of 'datetime.date' and 'str'
quarter dates and daily cost dataframe are both 129,32 in shape.