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

This is the correct way to get weekly data ? Just need a confirmation thanks.
p_history = data.history(context.security,['close','volume','high','low'],50,'1d')
p_history= p_history.resample('W').last()