<IPython.core.display.HTML object> instead of graph

1.6k Views Asked by At

I am trying to achieve the following Twitter-Visualization project in iPython: http://www.amypeniston.com/web/visualizing-twitter-data

For the last step, my 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, all I get in return is:

IPython.core.display.HTML object
0

There are 0 best solutions below