not getting results on any stocks

hi, for some reason can't get the sentiment table itself from this code:

BAC = symbols('INTC').sid
bac_sentiment = sentiment[ (sentiment.sid==BAC) ]

only the line:

can anyone help please? (i am new to quantopian and following on line trainings)

3
3 responses

Here's the fix. With some explanation afterwords.

# Append '.peek()' after blaze expressions



Quantopian recently upgraded our version of Blaze. Unfortunately, the 'implicit computation' feature has been deprecated. This feature allowed users to enter expressions in familiar pandas-like syntax as below

bac_sentiment.head()



Now, in this latest version, one needs to explicitly tell Blaze to compute the results by appending the peek() method. Here is the text from the Blaze site:

The Expr repr method's triggering of implicit computation has been deprecated. Using this aspect of Blaze will trigger a DeprecationWarning in version
0.10, and this behavior will be replaced by a standard (boring) repr implementation in version 0.11. Users can explicitly trigger a computation to see a
quick view of the results of an interactive expression by means of the peek() method.`