I have a pandas dataframe with the following structure:
Date Open High Low Close Volume
0 2003-10-01 00:00:00 1.16500 1.16700 1.16400 1.16690 1125
1 2003-10-01 01:00:00 1.16680 1.16790 1.16600 1.16720 933
............
Those are continuos time values because it is Eur/Usd data. I want to resample this creating a daily dataframe that uses as Open value the value on Open column for Date XXXX-XX-XX 09:00:00 and for Close value the Close column value for XXXX-XX-XX 16:00:00. High and low should be the higher high and the lower Low between XXXX-XX-XX 09:00:00 and XXXX-XX-XX 16:00:00. Volume should be the sum of volumes between XXXX-XX-XX 09:00:00 and XXXX-XX-XX 16:00:00. Is there an easy way to do that in pandas? How to?
Thanks