Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set the default subtitles language in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Working With a Stocks Dataset

Give Feedback

In this lesson you’ll learn how to access stock data and visualize it using vincent. This video concludes the course.

Sciencificity on March 14, 2019

Hi there, I have installed vincent however from vincent.ipynb import init_d3, init_vg, display_vega causes this error: ModuleNotFoundError: No module named ‘vincent.ipynb’ Any guidance? Thanks.

Mahidhar Nyayapati on March 15, 2019

Need more examples to illustrate power of Vincent…Why should I use Vincent when I have matplotlib abd plotly like tools

charliem22 on June 29, 2019

I had the same issue as you did RE vincent. I think the core problem is that this tutorial is <<way>> out of data. It’s my understanding – although I am just coming to data science via Python – that matplotlib and plotly are far better plotting tools. I’m going to work on getting up to speed with them.

Bradley Grant on Nov. 14, 2019

Hello from 2019! This code is 6 years old and a lot of things have changed:

  • The Pandas datareader is now a separate package, you’ll need to pip install pandas-datareader then from pandas_datareader import data, wb
  • Consider using `stock_data = data.DataReader(‘tsla’, ‘yahoo’, start = ‘01-01-2010’)
  • The resample method now looks like high = high.resample('D').sum()
  • The vincent imports are now import vincent and vincent.core.initialize_notebook()
  • Pass the data directly into the Line object like this: line = vincent.Line(stock_data)
  • Display the line by calling display(line)

Olivier Rachoin on Nov. 21, 2019

Dears, thank you for the Tutorial but, we need a cleared explanation on the power of Vincent. matplotlib & plotly are already showing great results, where does vincent stand against the 2 mentioned above?

A Janifal on May 13, 2020

Hello from 2020, =) more tutorials about Vincent n Pandas please

Louis Voet on Aug. 26, 2020

I think another line in this tutorial might be outdated. The following did not seem to work for me:

from pandas.io.data import DataReader

It gave me this error:

ModuleNotFoundError: No module named 'pandas.io.data'

It was fixed by changing the import line to:

from pandas_datareader import DataReader

Become a Member to join the conversation.