idx = pd.date_range('1/1/2010', periods=4000000, freq='T')
df = pd.DataFrame(np.random.rand(4000000, 4), columns=['Open', 'High',
    'Low', 'Close'], index=idx)
How to speed up resample procedure in Pandas?