python - Return stock symbol in quantopian -
i working on algo in quantopian , ran problem.
i calculated z-score's weighted % price change group of etf's , trying find ten best stocks. when run code
print(context.zscore)
it gives me data in 2 columns, symbol , zscore. however, when index no longer gives me symbol, zscore
print(context.zscore[0])
here's screenshot of output, first line indexed , second through nth line not.
i want return
equity(14516 [ewa]) -.679217
or better
ewa -.679217
does know how this?
to solve problem it's pretty simple. use [[]]
Comments
Post a Comment