My dataframe has daily stock data in it:
Date AAPL NFLX INTC 0 2008-01-02 27.834286 3.764286 25.350000 1 2008-01-03 27.8471
Your index is not a DatetimeIndex. But you can make it a DatetimeIndex:
df.set_index('Date', inplace=True) df.index = pd.to_datetime(df.index) df.resample('1M').mean() # AAPL NFLX INTC #Date #2008-01-31 26.248857 3.577429 23.566