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

First assignment for the course "introduction to systematic investment strategy"
Heatmap of Q500 Returns grouped by PE ratio and Capital market.
I am totally new to programming, so the code is far from optimal. If anyone have suggestion or correction, please comment below.

1 response

Dear Mohamad, please note that in order to reshape a groupby object into a proper data frame you could just use groupedby.unstack() command.
Please also note that xticklabels and yticklabels should in fact include the deciles values, while you put there x and y axes titles. To give axes the titles you could use commands from matplotlib library such as plt.xlabel and plt.ylabel.

best regards,
Chulpan