Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to use history() properly
        output=pipeline_output.sort_values(by=mom).dropna().tail(5)  
        assets = output.index.unique()  
        returns= history(121, '1d', 'close')  

How can I get close price from returns for asset in assets?
Thank you!