Giter Club home page Giter Club logo

Comments (2)

lplabuskes avatar lplabuskes commented on August 26, 2024

By default, pitching_stats will apply the FanGraphs requirement for "qualified" pitchers, 1 IP per team game played. Gerrit Cole didn't have the innings pitched to meet that threshold in 2013, 2014, or 2016. You can set your own IP threshold with the argument qual=<your threshold here>, though this can slow things down a lot.

There's also a completely undocumented argument to only look up data for particular players. So, for example
pb.pitching_stats(start_season=1900, end_season=2024, split_seasons=True, players="13125,19361", qual=0)
Gives every season of either Gerrit Cole (13125) or Corbin Burnes (19361)

from pybaseball.

bclark08 avatar bclark08 commented on August 26, 2024

There's also a completely undocumented argument to only look up data for particular players. So, for example pb.pitching_stats(start_season=1900, end_season=2024, split_seasons=True, players="13125,19361", qual=0) Gives every season of either Gerrit Cole (13125) or Corbin Burnes (19361)

Thank you...so much for this!

from pybaseball.

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.