A library to query MLB stats including on a game level
Project description
Baseball Query
It's a stathead replacement, plain and simple.
When you install this package and import it for the first time, it will download many GB of data from retrosheet. Eventually, it will be deleted, but you will get a total of 12 GB of data in the form of an hdf5 file. This is a lot of data, but it's necessary. This whole process (including calculating linear weights) can take upwards of an hour so start running this in the background once you install it before you use it.
Not implemented (as of when I finish this):
- Park factors
- Full game stats (saves, holds, shutouts, etc.) for pitchers. This one is probably important
- GB%, LD%, FB%, and PU% will deviate from fangraphs due to differences in data and it being quite subjective. Also, Fangraphs FB is more similar to FB+PU so that's what I used in HR/FB% calculations.
- This probably is impossible to fix
Recipients of Retrosheet data are free to make any desired use of the information, including (but not limited to) selling it, giving it away, or producing a commercial product based upon the data. Retrosheet has one requirement for any such transfer of data or product development, which is that the following statement must appear prominently:
The information used here was obtained free of
charge from and is copyrighted by Retrosheet. Interested
parties may contact Retrosheet at "www.retrosheet.org".
Retrosheet makes no guarantees of accuracy for the information that is supplied. Much effort is expended to make our website as correct as possible, but Retrosheet shall not be held responsible for any consequences arising from the use of the material presented here. All information is subject to corrections as additional data are received. We are grateful to anyone who discovers discrepancies and we appreciate learning of the details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file baseballquery-0.0.2.tar.gz.
File metadata
- Download URL: baseballquery-0.0.2.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c460a811a7219eeb46618c000a78723f37e31b5a589c0230d2b39fe8bdea4452
|
|
| MD5 |
b9ac52a09452c142b76d2d10d84f788a
|
|
| BLAKE2b-256 |
93122ddb068226304edc879373c3c206d82ef588883572ecb084c40a54a7e004
|
File details
Details for the file baseballquery-0.0.2-py3-none-any.whl.
File metadata
- Download URL: baseballquery-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae669812d7c3bcdcb8ab2dce5fd7036d835029dc215f88f90fc9be4fab62749f
|
|
| MD5 |
5c26b13c43e51d94bd5258bb6072569c
|
|
| BLAKE2b-256 |
238f9247e13baee548dcc6a0b61546ef88766bfdc0554559aea83ec823fd83a5
|