def outData(ts, actionHist, indx, startIndex=0):
    out = pd.DataFrame(ts, index=indx, columns=['ts']).applymap((lambda x: (x / 100)))
    out = out[startIndex:]
    out['cum_log_ts'] = cumsum([log((1 + i)) for i in out['ts']])
    out['Action_Hist'] = actionHist[startIndex:]
    out['trading rets'] = calculateTradingReturn(out['Action_Hist'], out['ts'])
    out['cum_log_rets'] = cumsum([log((1 + x)) for x in out['trading rets']])
    return out
def outData(ts, actionHist, indx, startIndex=0):
    out = pd.DataFrame(ts, index=indx, columns=['ts']).applymap((lambda x: (x / 100)))
    out = out[startIndex:]
    out['cum_log_ts'] = cumsum([log((1 + i)) for i in out['ts']])
    out['Action_Hist'] = actionHist[startIndex:]
    out['trading rets'] = calculateTradingReturn(out['Action_Hist'], out['ts'])
    out['cum_log_rets'] = cumsum([log((1 + x)) for x in out['trading rets']])
    return out