Code Monkey home page Code Monkey logo

nba_tutorials's People

Contributors

anpatton avatar rd11490 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nba_tutorials's Issues

The results of some games have big deviation from NBA.com and basketball-referrence.

As I konwed, NBA.com and basketball-reference.com have differrent way to calculate the possessions. NBA.com use the play-by-play data, and basketball-reference caclulate it from traditional box. However, results of them are very close. The results of this project are mostly close to the NBA.com. But there are big deviation in some game. The game is such one with GAME_ID equaling to '0021801167' . The possession numbers of three way are as follow:

This project: 110.5
NBA.com: 105
basketball-reference.com: 108 (score/ORtg)

I don't konw if I make some mistake in the calcullation.

About luck adjusted rapm

Thanks for your work, I can try to calculate rapm, but I still don't understand how to calculate the lucky adjusted rapm, I understand the basic principle, but how to implement it in rapm, how to get the data?

A bug in player_on_court.py

73 periods = players_subbed_in_at_each_period['PERIOD'].drop_duplicates().values.tolist()
Sometimes the game has no substitutions, which may miss the period.
periods = play_by_play['PERIOD'].drop_duplicates().values.tolist()
This avoids the problem.

Error in Python

hello,

i tried exactly the same as you say. i'm getting the error "NameError: name 'extract_data' is not defined".

client = urllib3.PoolManager()
season = "2019-20"

frame = extract_data(client, player_stats_url(season)) !! in this step i get the error.

am i missing something?

Question: In the RAPM tutorial how do you define a possession?

I went through the play-by-play parser tutorial to get my pbp data in a way that it's ready to calculate RAPM. But, in the RAPM tutorial you have an extra binary column for possession that I'm not sure how you derived. If you could share any insights on that, that'd be great!

Pulling Data From Entire Season?

I am looking at the later tutorial based around analyzing the play by play data which redirects me to this page to create a play-by-play scraper. But, this one seems to be just for substitutions, and just for one game. Do you have a file or a tutorial that shows how to scrape data from an entire season? I am somewhat new to coding so it may already be plainly out here for me to see, but I am missing it. I am just looking for a reliable way to scrape season data every week or so to stay updated. Sorry if this question wastes your time if the answer is very obvious.

Double Whiteside

In rapm_possessions.csv, there are at least 46 rows where Hassan Whiteside (playerid 202355) is listed in two different columns. For example, row 60919 has this property. It looks like they're from Heat-Jazz games. Is this shorthand for a situation where all but 4 players fouled out/were injured? I haven't been able to check whether this happened.

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.