def resample_to_csv(barFeed, frequency, csvFile):
 assert (frequency > 0), 'Invalid frequency'
 resample_impl(barFeed, frequency, csvFile)

def resample_to_csv ( barFeed , frequency , csvFile ) : assert ( frequency > 0 ) , 'Invalid frequency' resample_impl ( barFeed , frequency , csvFile )
resample a barfeed into a csv file grouping bars by a certain frequency .