def minute_to_session(column, close_locs, data, out):
 if (column == 'open'):
  _minute_to_session_open(close_locs, data, out)
 elif (column == 'high'):
  _minute_to_session_high(close_locs, data, out)
 elif (column == 'low'):
  _minute_to_session_low(close_locs, data, out)
 elif (column == 'close'):
  _minute_to_session_close(close_locs, data, out)
 elif (column == 'volume'):
  _minute_to_session_volume(close_locs, data, out)
 return out

def minute_to_session ( column , close_locs , data , out ) : if ( column == 'open' ) : _minute_to_session_open ( close_locs , data , out ) elif ( column == 'high' ) : _minute_to_session_high ( close_locs , data , out ) elif ( column == 'low' ) : _minute_to_session_low ( close_locs , data , out ) elif ( column == 'close' ) : _minute_to_session_close ( close_locs , data , out ) elif ( column == 'volume' ) : _minute_to_session_volume ( close_locs , data , out ) return out
resample an array with minute data into an array with session data .