I wish to convert the following <'pandas.tseries.resample.DatetimeIndexResampler'>
type object into a pandas DataFrame object (<'pandas.core.frame.DataFrame'>
). However I cannot find the relevant function in the pandas documentation to allow me to do this.
The data takes the following form:
M30
Date
2016-02-29 -61.187699
2016-03-31 -60.869565
2016-04-30 -61.717922
2016-05-31 -61.823966
2016-06-30 -62.142100
...
Can anyone provide an alternative solution?
You need some aggregate function like
sum
ormean
.Sample with your data: