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. enter image description here

i want return

equity(14516 [ewa])     -.679217 

or better

ewa      -.679217 

does know how this?

to solve problem it's pretty simple. use [[]]


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -