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.

Importing CSV Data Into a Pandas DataFrame

Give Feedback

This is the first video of the course and defines the objectives of this course. Furthermore, you’ll learn how to configure packages used during the course as well as explore the used dataset and how to load it into a Pandas DataFrame.

Resources:

Anonymous on June 1, 2019

where do i go to get the “kevin.csv” file that you are using?

Schumi Chou on June 21, 2019

I was wondering the same question - could RealPython help to share “kevin.csv” which this course uses? So that we can play with it directly to have more practical impression and experience. Thanks so much!

Dan Bader RP Team on June 21, 2019

Thanks for the heads up, you can download the CSV file at basketball-reference.com. Just click on Share & moreGet table as CSV (for Excel) and you can copy the table and save it to a file named kevin.csv.

olagappanmuthu on Dec. 28, 2019

How do I install the “vincent” package?

pshekhar2707 on March 5, 2020

to install vincent package : i used following command at anaconda prompt (logged in as admin) conda install -c conda-forge vincent

pshekhar2707 on March 5, 2020

After reading file from site mentioned by Dan, you would notice in dataframe 2 columns as :’Unnamed: 5’, and ‘Unnamed: 7’.

So we need to rename those columns as : data.rename(columns={‘Unnamed: 5’:’Home_Away’, ‘Unnamed: 7’:’Win_Loss’}, inplace=True)

gmodelgado on March 15, 2020

May I have the course notebook?

Ricky White RP Team on March 16, 2020

Hi gmodelgado. There is not a notebook that accompanies this course. Sorry.

The link to the CSV file, however, is a above.

Hung Chua on May 17, 2020

pip3 list shows that I’ve got vincent somehow it won’t load in jupyter No problems with pandas

Become a Member to join the conversation.