def get_daily_sortino(fund_ts, years):
    s_ret=""
    for year in years:
        year_vals = []
        for date in fund_ts.index:
            if(date.year==year):
                year_vals.append([fund_ts.ix[date]])
        ret = fu.get_sortino_ratio(year_vals)
        s_ret+=" % + 8.2f " % ret
    return s_ret
Convenience function to write a user key and check for errors.
dataset/ETHPy150Open tucker777/QSTK/Bin/report.py/get_daily_sortino--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/ssh/client.py/SSHClient._write_user_key