resample ohlc pandas

In [101]: df.resample('1H').agg({'openbid': 'first', 
                                 'highbid': 'max', 
                                 'lowbid': 'min', 
                                 'closebid': 'last'})
Out[101]: 
                      lowbid  highbid  closebid  openbid
ctime                                                   
2015-09-30 23:00:00  1.11687  1.11712   1.11708    1.117

Here is what the above code is Doing:
1. resample the dataframe by 1 hour
2. aggregate the dataframe by taking the first value of openbid, the max value of highbid, the min value of lowbid, and the last value of closebid