DataFrames, type-safety, and plotting for modern baseball analytics.
Project description
MLB Data Tools
DataFrames, type-safety, and plotting for modern baseball analytics.
Philosophy & Goals
- Expose useful endpoints and datasets (Savant Player Pages, OAA data by play, pitch by pitch statcast)
- Defined data schema/types
- Easily convert to DataFrames
Example Usage
from mlbdatafetch import mlbfetch
all_players = mlbfetch.players(sport_id=1, season=2024)
player = all_players[0]
print(player.full_name, player.primary_position_code)
players_df = all_players.to_df()
players_df.head(1)
Andrew Abbot P
| id | full_name | first_name | last_name | primary_number | ... | |
|---|---|---|---|---|---|---|
| 0 | 671096 | Andrew Abbot | Andrew | Abbot | 41 | ... |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mlbdatatools-0.1.4.tar.gz
(13.3 kB
view details)
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 mlbdatatools-0.1.4.tar.gz.
File metadata
- Download URL: mlbdatatools-0.1.4.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0ba96435b95b90764175cfa5a3ba475ce6e63c264fea5149378aa2a7f490cb6
|
|
| MD5 |
d813a3cc326e88d6801d12e12d15c05c
|
|
| BLAKE2b-256 |
299a43d2b085bd7cbe92583f4ea2b71d9cb04c796bd170982e2d1804d67a4ef7
|
File details
Details for the file mlbdatatools-0.1.4-py3-none-any.whl.
File metadata
- Download URL: mlbdatatools-0.1.4-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0542c1a07998a8f6f71da7d0103df1dd1acd9435b7274ae23824b36a78981b2
|
|
| MD5 |
1465f7a48fcc9e495a29bc5bc14f8cee
|
|
| BLAKE2b-256 |
e3395f8263efe8d426aabc2b01c5006833943261208df771f358a1e50667a7b5
|