AI: Data and graphs part 2

iOS
2 min readOct 29, 2018

Creating Dataframes with CSV files

I started reading, “Pragmatic AI: An Introduction to Cloud-based Machine Learning” and the below information is reference from the chapter titled: “Predicting Social-Media Influence in the NBA”. In this guide I am going to work with Data from csv files display this data on a few graphs.

Pragmatic AI github — https://github.com/noahgift/socialpowernba

First I import the libraries into my jupyter notebook:

Next I read the data for the csv file

Next I check the data

attendence
endorsement
valuations

Lets merge attendance data and valuation data and look at the first few rows

attendance and valuation merged

Lets see if we can find a relationship between attendance and team valuation.

When can see there is a correlation between attendance and valuation because the Chicago bulls had the highest attendance and the highest valuation.

Chicago Bull attendance

Compared valuation to attendance

Let see if we can see any outliers by using a heat map

The heat map is pretty interesting because the Brooklyn nets have a $1.8 dollar valuation but have one of the lowest attendance rates.

Please checkout the below links

Resume website — https://tommarler.org

Linkedin — https://www.linkedin.com/in/tom-m-bb4857112/

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

iOS
iOS

Written by iOS

iOS Developer, Go, Java, C#, Blockchain enthusiast, Data junkie

No responses yet