Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How to fix weight per industry

I have little experience with python & Quantopian however I tried to program a portfolio which combines different factors and invest in sectors so that each sector has an equal weight at the end with a different number of stocks. But somehow it seems that the weights do not get through to the execution. Thanks for any help!