twitter - <IPython.core.display.HTML object> instead of graph -
i trying achieve following twitter-visualization project in ipython: http://www.amypeniston.com/web/visualizing-twitter-data
for last step, code is:
%pylab
dogs = pd.read_csv(' c:/users/alex/mongodb/bin/outputtweets.csv') dogs['created_at'] = pd.to_datetime(pd.series(dogs['created_at'])) dogs.set_index('created_at', drop=false, inplace=true) dogs.index = dogs.index.tz_localize('gmt').tz_convert('est') dogs.index = dogs.index - dateoffset(hours = 12) dogs.index dogs1m = dogs['created_at'].resample('1t', how='count') v.core.initialize_notebook() area = v.area(dogs1m) area.colors(brew='spectral') area.display()
however, in return is:
ipython.core.display.html object
Comments
Post a Comment