Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Downloading backtest returns to desktop

Dear Experts

I try to download daily returns of the backtest result to my PC. It seem impossible.

  1. Q doesnt allow connection between notebook and my PC

  2. I tried to manual copy and paste to excel. But it always shows a portion of the result. I am trying to download 5 years of daily returns. Seem alot of work if I partition them into small blocks and copy and paste.

    import empyrical as ep  
    bt = get_backtest('5c33831378212c4a260e7ae1')  
    total_returns = bt.attributed_factor_returns['total_returns']  
    print 'total_returns', total_returns  

Thanks for your advice