GithubHelp home page GithubHelp logo

Manually updating the DB about nfldb HOT 9 CLOSED

burntsushi avatar burntsushi commented on July 20, 2024
Manually updating the DB

from nfldb.

Comments (9)

BurntSushi avatar BurntSushi commented on July 20, 2024

If you have data from before 2009 that fits with the existing schema, then the best thing to do would be to share it. :-)

But to answer your question... No, nfldb-update should not touch your data. The auto update script works with data in nflgame as ground truth, so it will only modify data connected to it.

More to the point, once a game is finished, it is considered immutable. nfldb-update will never modify games that are finished. If your data is pre-2009, then make sure finished is set in the game table and you should be good to go.

These semantics imply that nfldb-update is, for the most part, idempotent with respect to games that are not being played.

Seriously though, would you be interested in contributing your pre-2009 data? AFAIK, the only way to get a hold of it freely is to parse play descriptions, which looks nearly impossible with respect to the granularity expected by nfldb.

from nfldb.

BurntSushi avatar BurntSushi commented on July 20, 2024

@TobiasHansen Ping. I'd be really interested to hear how you came across pre-2009 data. It'd be great if we could collaborate. :-)

from nfldb.

TobiasHansen avatar TobiasHansen commented on July 20, 2024

Sorry for my late reply, I went on a holiday right after I posted that question, so havent been around a computer before now.

I am working on an NFL stats application, where I want to add stats pre 2009, thought I really doubt I will find anything that fits the NFLDB, so I think I will need to make a new one, but not totally decided what to do next.

But if I ever find anything that fits, I will for sure share it here :)

from nfldb.

BurntSushi avatar BurntSushi commented on July 20, 2024

@TobiasHansen Ah, neat. What do you have so far? It would be nice to collaborate.

The key, I think, is parsing those play descriptions...

from nfldb.

TobiasHansen avatar TobiasHansen commented on July 20, 2024

Not much tbh.

This is my first attempt on a real application. So I am starting with what seams easiest at the moment, and so far I only have made some code who took the Game Result .csv files from this site: http://www.pro-football-reference.com/, and making an All-Time Team Standings :)

I am however making my application in Java, so not sure if what I do fits into this project?

from nfldb.

BurntSushi avatar BurntSushi commented on July 20, 2024

This project is absolutely suitable. The Python is entirely incidental. The main contribution of this project is a database. You can use the database independent of the Python. You can import the database, run nfldb-update whenever you want to ingest new data while also adding your own data from before 2009.

Your main problem is getting data from before 2009. You need play by play data for it to work with nfldb. If you can't get that, then you're right, nfldb is not the right project.

from nfldb.

teamfball avatar teamfball commented on July 20, 2024

@BurntSushi, have you seen this data

http://www.advancedfootballanalytics.com/2010/04/play-by-play-data.html

from nfldb.

ochawkeye avatar ochawkeye commented on July 20, 2024

As an extension of @teamfball 's question (and so I can research it when not in my phone...)

https://github.com/veltman/nflplays is based on the data gathered on that site and referenced in the comments of the page linked.

from nfldb.

BurntSushi avatar BurntSushi commented on July 20, 2024

@teamfball Yes. Although it says "play by play" data, it is not really. It's just play descriptions with a few easy attributes extracted. The challenge is to pull out player events from those descriptions. (For every play, there are zero or more player events.)

from nfldb.

Related Issues (20)

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.