Giter VIP home page Giter VIP logo

nbadata2015-2016's Introduction

NBA Data Analysis Project Documentation

NBA Logo

Goal was to try to find any relationship between a NBA player's salary and his points for Data Mining extra credit. Didn't finish. ###Web Scraping Process

Used python in 'nbasalariestesting.py'. This goes to http://www.espn.com/nba/salaries/_/year/2016 and scrapes the player data according to inspect element/tags of that site. Then it loops through the rest of the 11 or 12 pages of data and does the same. It saves all of this to one csv file named 'nbasalaries.csv'.

The csv file for the player's stats like rebounds/points/steals was already available in 'NBApoints.csv' so I just merged the two csv files together where the names match. This is done in 'merge.py' to make the final csv file with the players stats and salaries altogether is in 'nbasalariespoints.csv'

###Data Transformation Process

  • For NBApoints.csv, the Player name will include “\information” after the players actual name. To remove this, in Excel, we use the find and replace feature, and in the “Find” area, we put “*”, and in the replace, we put “ “. This will clean up the player name feature to be just the name.
  • Similarly, for nbasalaries.csv, we do the same process. In the “Find” area, we put “,*”, and in the replace, we put “ “. This will clean up the player name feature to be just the name.

nbadata2015-2016's People

Contributors

addisongauss avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.