Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Formatting Log

def screen_time(context,data):

results = pipeline_output('factors')  

context.pipeline_output = results.sort_values('momentum', ascending = False).iloc[:20]  

# stocks in unitiverse  
print 'Total Securities in the Universe: %d' % len(results)  


#Stocks to be traded  
log.info("\n" + str(context.pipeline_output.head(20)))  
log.info("\n" + str(len(context.pipeline_output.index)))

How can I format my log output to look something like

$ticker rsi 44.85 volume 45,500,500 custom 45.555 custom2 1.355 $ticker rsi 54.85 volume 5,500,500 custom 15.555 custom2 1.155