Giter Club home page Giter Club logo

Comments (6)

tmthyjames avatar tmthyjames commented on August 25, 2024

I can calculate obp from other stats, but not slg or ops (unless there is data for singles, doubles and triples which I haven't been able to find).

Is it possible to get single, double, triple data per game?

from mlbgame.

panzarino avatar panzarino commented on August 25, 2024

That's odd, ops and slg do not appear to show up on spring training games. That's on MLB, there's nothing I can really do if they do not provide the data. As far as I know, data for individual types of hits is not provided but there is a list of all the events that occurred in the game, and you could go through and see who was batting for each event and what the outcome was. Here is the list of events for the game that you gave an example of: http://gd2.mlb.com/components/game/mlb/year_2015/month_04/day_01/gid_2015_04_01_bosmlb_minmlb_1/game_events.xml. I'll continue to look into the issue with slg and ops.

from mlbgame.

tmthyjames avatar tmthyjames commented on August 25, 2024

Got it. Thanks for the game events link; I can scrape through that to find 1b, 2b and 3b data.

Will there be support in the future for getting play-by-play events through mlbgame? Wasn't sure if it was already in the works.

from mlbgame.

panzarino avatar panzarino commented on August 25, 2024

I'm thinking about it, not exactly sure how I'm going to add it to the project but it will probably be coming soon along with other feature additions.

from mlbgame.

rationalpastime avatar rationalpastime commented on August 25, 2024

Double and triple data are there. The stats are labeled 'd' and 't'. You can get slg via (h + d + 2 * t + 3 * hr)/ab.

from mlbgame.

panzarino avatar panzarino commented on August 25, 2024

Thanks @rationalpastime. Updated statmap with commit f76408e, new release coming sometime soon.

from mlbgame.

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.