def annualisedSharpe(rs, rf=0):
    rs = rs[:(- 1)]
    if ((type(rf) == int) | (type(rf) == float)):
        rf = [rf for i in rs]
    mean_ann_ret = mean([((rs[i] * 252) - rf[i]) for i in range(len(rs))])
    stand = (std(rs) * sqrt(252))
    return (mean_ann_ret / stand)
def annualisedSharpe(rs, rf=0):
    rs = rs[:(- 1)]
    if ((type(rf) == int) | (type(rf) == float)):
        rf = [rf for i in rs]
    mean_ann_ret = mean([((rs[i] * 252) - rf[i]) for i in range(len(rs))])
    stand = (std(rs) * sqrt(252))
    return (mean_ann_ret / stand)