from pandas.tseries.resample import TimeGrouper
new_data = df['direction'].groupby(TimeGrouper('10min'))
new_data.apply(directionDescribe)
How to implement my own describe() function to use in resample()